This preview shows page 1. Sign up to view the full content.
Unformatted text preview: in the code. (Subroutines can even be called recursively). To call a subroutine use Call SubroutineName ( Argument list ) A syntax for a subroutine is Public Sub SubroutineName ( Argument list ) Block of statements End Sub The argument list can contain both input and output variables and these variables must be declared in the calling program, not in the subroutine. Variables that are local to the subroutine must be declared in the subroutine. 1...
View Full Document
- Spring '10