A Sub procedure:
- is a series of statements, enclosed by the Sub and End Sub statements
- can perform actions, but does not return a value
- can take arguments
some statements
End Sub
or
Sub mysub(argument1,argument2)some statements
End Sub
Example
Sub mysub()
response.write("I was written by a sub procedure")
End Sub
response.write("I was written by a sub procedure")
End Sub
Practice Excercise Practice now