主页 > 知识库 > Asp 返回引用类型函数代码

Asp 返回引用类型函数代码

热门标签:服务器配置 Linux服务器 阿里云 科大讯飞语音识别系统 电子围栏 Mysql连接数设置 银行业务 团购网站
复制代码 代码如下:

%
set studentinstance = CreateStudent()
if not isnull(studentinstance) then
Response.write("StudentId:"studentinstance.StudentId"Br/>")
Response.write("StudentName:"studentinstance.StudentName"Br/>")
end if

Function CreateStudent()
set stud = new Statudent
stud.StudentId=123
stud.StudentName="Eric liu"
set CreateStudent=stud
End Function

Class Statudent
private id
private name

public property let StudentId(id_)
id=id_
end property
public property get StudentId
StudentId=id
end property

public property let StudentName(name_)
name=name_
end property
public property get StudentName
StudentName=name
end property

End Class
%>

标签:萍乡 广元 大理 衢州 枣庄 蚌埠 衡水 江苏

巨人网络通讯声明:本文标题《Asp 返回引用类型函数代码》,本文关键词  ;如发现本文内容存在版权问题,烦请提供相关信息告之我们,我们将及时沟通与处理。本站内容系统采集于网络,涉及言论、版权与本站无关。
  • 相关文章
  • 收缩
    • 微信客服
    • 微信二维码
    • 电话咨询

    • 400-1100-266