 |
Purpose
Jumps to a procedure's labeled subroutine, then returns to the line following Gosub.
Note
We do not recommend use of this command; it is only included for backward compatibility. Instead, use subroutines to handle frequently processed routines.
Syntax
Gosub Label
...
Return
Label |
A line number (consisting of the numbers 0-9) or an alphanumeric string (as long as it does not start with a number). The label must be the first nonblank characters on the line, followed by a colon (:). |
Example
Dim I As Integer
For I = 1 to 10
Gosub MySubroutine
Goto MyEnd
|  |