Asp 返回使用类型函数代码
发布时间:2023-06-08 13:49:09 所属栏目:Asp教程 来源:
导读:Asp函数返回引用类型代码,需要的朋友可以参考下。
复制代码代码如下:
<%
set studentinstance = CreateStudent()
if not isnull(studentinstance) then
Response.write("StudentId:"&studentin
复制代码代码如下:
<%
set studentinstance = CreateStudent()
if not isnull(studentinstance) then
Response.write("StudentId:"&studentin
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 %> (编辑:聊城站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐