100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > asp自定义函数可以返回数组或者对象

asp自定义函数可以返回数组或者对象

时间:2024-05-17 10:28:04

相关推荐

asp自定义函数可以返回数组或者对象

asp自定义函数可以返回数组或者对象

例子:

functionGetAuditorInfoBySeqNo(filenostr,strSeqNo)

DimauditorInfo(3)

sqltext="selectauditorfromfileauditwhereFileNO='"&filenostr&"'andseqNo='"&strSeqNo&"'"

setrs_auditor=conn.Execute(sqltext)

ifnotrs_auditor.eofthen

employeeid=rs_auditor("auditor")

sqltext="select*fromemployeewhereid="&employeeid

setrs_em=conn.Execute(sqltext)

auditorInfo(1)=rs_em("ID")

auditorInfo(2)=rs_em("en_Name")

auditorInfo(3)=rs_em("mail")

endif

GetAuditorInfoBySeqNo=auditorInfo

endfunction

AuditorInfo=GetAuditorInfoBySeqNo(file_No,2)

Response.writeAuditorInfo(1)

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。