To properly display this page you need a browser with JavaScript support.
×
Menu
Index
Search
Search
Search
Control Basic Programming
GOSUB
Previous page
Next page
Print version
To properly display this page you need a browser with JavaScript support.
GOSUB
Purpose:
To call a subroutine. Used in conjunction with RETURN.
Format:
GOSUB line
Description: line is the line number
EXAMPLE
10 GOSUB 100
20 REM THIS LINE GETS EXECUTED AFTER LINE 120
30 END
100 REM SUBROUTINE GOES HERE
110 A = A + 1
120 RETURN