Small company logo:
   History
 
Advertising banner:
 
 Gosub
Home • Help • Customization Tools • FCAS • Language Reference • Gosub
 
Purpose
Jumps to a procedure's labeled subroutine, then returns to the line following Gosub.
7202010_20004_0.png        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