Wasp Technologies.
73 Copyright 2001 All Rights Reserved.
GOSUB…RETURN
Description
Branch to and return from a subroutine. Branch to the specified label and execute
subroutines until “RETURN” is reached and then go back to the statement following
the GOSUB statement.
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
DOWNLOAD “GOSUB1.BAS”
SIZE 4,4
GAP 0,0
DENSITY 8
SPEED 3
DIRECTION 0
REFERENCE 0,0
SET CUTTER OFF
SET PEEL OFF
CLS
TEXT 10,600,"5",0,1,1,"GOSUB & RETURN COMMAND TEST"
X=300
Y=300
GOSUB DASH
GOSUB DR_LINE
PRINT 1
END
:DR_LINE
BOX X,Y,X+200,Y+200,5
RETURN
:DASH
Summary of Contents for WPL305
Page 1: ...WPL2 PROGRAMMING MANUAL Wasp Technologies BAR CODE PRINTER SERIES...
Page 5: ...SECOND 105 YEAR 106 MONTH 107 DATE 108 DAY 109 HOUR 110 MINUTE 111 SECOND 112...
Page 8: ...Wasp Technologies 2 Copyright 2001 All Rights Reserved GAP BLINE...
Page 60: ...Wasp Technologies 54 Copyright 2001 All Rights Reserved See Also F FILES...
Page 67: ...Wasp Technologies 61 Copyright 2001 All Rights Reserved See Also DOWNLOAD EOP OPEN READ SEEK...
Page 100: ...Wasp Technologies 94 Copyright 2001 All Rights Reserved See Also SIZE GAP BLINE...
Page 119: ...Wasp Technologies 113 Copyright 2001 All Rights Reserved...
Page 120: ...Last update May 21 2004...