Sunday, 17 February 2013

How to write a function with argument using asp


Program:
<!DOCTYPE html>
<html>
<head>
<%
sub vbproc(num1,num2)
response.write(num1*num2)
end sub
%>
</head>

<body>
<p>You can call a procedure like this:</p>
<p>Result: <%call vbproc(3,4)%></p>
<p>Or, like this:</p>
<p>Result: <%vbproc 3,4%></p>
</body>
</html>

Output:
You can call a procedure like this:
Result: 12
Or, like this:
Result: 12

Thanks for watching...Comment it...

No comments:

Post a Comment