在 ASP 中,你可通过 VBScript 和其他方式调用子程序。
实例:
调用使用 VBScript 的子程序
<html>
<head>
<%
sub vbproc(num1,num2)
response.write(num1*num2)
end sub
%>
</head>
<body>
<p>您可以像这样调用一个程序:</p>
<p>结果:<%call vbproc(3,4)%></p>
<p>或者,像这样:</p>
伊图教程网[www.etoow.com]
http://www.etoow.com/html/2008-08/1218592431.html
<p>结果:<%vbproc 3,4%></p>
简单入门ASP子程序
'http://www.etoow.com/html/2008-08/1218592431.html