10.4.2.2. GOSUB ~ RETURN
10.4.2.2. GOSUB ~ RETURN
Explanation | Calling the address assigned by GOSUB. When RETURN statement is given, data returns to the next row of the called GOSUB statement. | |
Grammar | GOSUB <address>...... RETURN | |
Parameter | Address | Address to call Arithmetic formula can be used, if the address is row number. |
Example | GOSUB 150 END 150 REM ---- sub routine for test ---- PRINT #0, "Subroutine Start" PRINT #1, "Subroutine End" RETURN |