作家
登录

Asp 返回引用类型函数代码

作者: 来源:www.28hudong.com 2013-03-30 08:19:34 阅读 我要评论

复制代码 代码如下:<% 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 递归调用 已知节点查找根节点的函数

复制代码 代码如下:Function getTreeRootId(pNodeId) getSQL = "select note_id,parent_id from [T_tree_demo] where note_id='"& pNodeId &"'" Set getRs = db.Execute(getSQL) If Not getRs.eof Then If Trim(ge>>>详细阅读


本文标题:Asp 返回引用类型函数代码

地址:http://www.17bianji.com/kaifa2/ASP/31962.html

关键词: 探索发现

乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

网友点评
自媒体专栏

评论

热度

精彩导读
栏目ID=71的表不存在(操作类型=0)