Brother International TD-4420TN FBPL Command Reference - Page 154
Return, Label
![]() |
View all Brother International TD-4420TN manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 154 highlights
10.22 GOSUB...RETURN Description Branch to a subroutine, executing statements until RETURN is reached. Syntax GOSUB LABEL statement END :LABEL statement RETURN Parameter LABEL Description Beginning of the subroutine. The maximum length of the label is 8 characters. Example Sample code Result DOWNLOAD "GOSUB1.BAS" SIZE 4,3 GAP 0,0 DIRECTION 1 CLS TEXT 10,10,"3",0,1,1,"GOSUB & COMMAND TEST" GOSUB DR_BOX PRINT 1 END :DR_BOX FOR I=21 TO 81 STEP 10 BOX 80+I,80+I,80+300-I,80+300-I,5 NEXT RETURN EOP GOSUB1 RETURN See Also DOWNLOAD, EOP, END, GOTO 149
![](/manual_guide/products/brother-international-td4420tn-fbpl-command-reference-a4fb318/154.png)
149
10.22 GOSUB…RETURN
Description
Branch to a subroutine, executing statements until
RETURN
is reached.
Syntax
GOSUB LABEL
statement
END
:LABEL
statement
RETURN
Parameter
Description
LABEL
Beginning of the subroutine. The maximum length of the label is 8 characters.
Example
Sample code
DOWNLOAD "GOSUB1.BAS"
SIZE 4,3
GAP 0,0
DIRECTION 1
CLS
TEXT 10,10,"3",0,1,1,"GOSUB & RETURN
COMMAND TEST"
GOSUB DR_BOX
PRINT 1
END
:DR_BOX
FOR I=21 TO 81 STEP 10
BOX 80+I,80+I,80+300-I,80+300-I,5
NEXT
RETURN
EOP
GOSUB1
Result
See Also
DOWNLOAD, EOP, END, GOTO