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
- Control flow, argument list, condition GoTo linelabel, default step size