This simple function procedures is called to calculate the sum of two arguments:

Example

Function myfunction(a,b)
myfunction=a+b
End Function

response.write(myfunction(5,9))
 

The function "myfunction" will return the sum of argument "a" and argument "b". In this case 14.

When you call a procedure you can use the Call statement, like this:

Call MyProc(argument)

Or, you can omit the Call statement, like this:

MyProc argument



Practice Excercise Practice now