Asp 返回引用类型函数代码
Asp 返回引用类型函数代码
发布时间:2016-12-29 来源:查字典编辑
摘要:复制代码代码如下:

复制代码 代码如下:

<%

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教程学习
编程开发子分类