Showing posts with label subroutines. Show all posts
Showing posts with label subroutines. Show all posts

Monday, 26 September 2011

ASP: call functions and subroutines

   


With ASP, one of the main features we do like a lot is the possibility of creating procedures. There are two types of procedures: sub and functions.
Subroutines have a specific syntax:
<%
sub sub_name()
... ...
end sub
%>
and they don't output a result.

On the other hand, functions have the same syntax, but they output a result:
<%
function func_name()
... ...
end function
%>
Let's see how they work!