
PT-Basic Programming Manual Ver. 1.00 15/143
To call a specified subroutine.
GOSUB SubName|SubLabel|SubNumber
GOSUB FUN
GOSUB Place
GOSUB 100
END
SUB FUN( )
PRINT "Run SUBNAME"
END SUB
Place:
PRINT "Run SUBLABEL"
RETURN
100
PRINT "RunSUBNUMBER"
RETURN
SubName is the name of a subroutine.
SubLabel is the line label of a subroutine.
SubNumber is the line number of a subroutine.
To branch unconditionally to a specified line number or line
lable from the normal program sequence.
GOTO LineNumber|LineLabel
GOTO FUN
100
PRINT "NUMBER"
WHILE INKEY$=""
WEND
END
FUN:
PRINT "LABEL NAME"
GOTO 100
LineNumber is the integer number in front of a program line.
LineLabel is the string label of a program line.
Commentaires sur ces manuels