|
Functions are used to perform calculations. The difference between function and subroutines is that function can return one value. A function begins with the keyword FUNCTION and ends with the keyword END FUNCTION.
Example:
<%
Function total(price)
dim tax
tax=price*.09
total=price+tax
End Function
gTotal=total(30)
response.write(gTotal)
%> |