手机
当前位置:查字典教程网 >编程开发 >ASP教程 >Asp 返回引用类型函数代码
Asp 返回引用类型函数代码
摘要:复制代码代码如下:

复制代码 代码如下:

<%

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 返回引用类型函数代码】相关文章:

ASP编程常用的代码

几个常用的ASP函数

收集asp的常用函数

ASP语法高亮类代码

asp 获取地址栏参数代码

asp 查询数据代码

asp获取当前URL代码

asp 中常用的文件处理函数

asp 在线人数统计代码

asp调用二级分类代码

精品推荐
分类导航