ASP中冒号的作用,函数参数传递

来源:百度知道 编辑:UC知道 时间:2024/06/05 15:51:20
ASP中冒号的作用
例子如下:
call admin():classdel()
Dim Go:Go=rs.Getrows()

参数传递:
如果我这儿还有一个Function
public Function classdel(classid,channelid)
^^^^^^^^
end Function

那么我在call admin():classdel()怎么调用这个??

call是调用过程用的,函数调用不能用call,直接输入函数名就可以了。
用法举例:
call a():b():c():response.write ss()
response.write "<br>"
sub a() '过程
response.write "aaa<br>"
end sub

sub b() '过程
response.write "bbb<br>"
end sub

sub c() '过程
response.write "ccc<br>"
end sub

function ss() '函数
ss="ss"
end function
%>

call admin():call classdel()
简单吧,呵呵