Wasp Technologies.
69 Copyright 2001 All Rights Reserved.
FOR…NEXT LOOP
Description
Loop is used to execute one or more lines of program repetitively. Before anything,
a value should be assigned the loop counter to specify the execution times. Nested
loop is allowed (up to 10 nested loops) in this printer. Jumping out in the middle
of the FOR…NEXT loop is prohibited because it is not a good programming skill..
Syntax
For variable = start TO end statement; start < end
NEXT
Parameter
Description
variable
The variable name is up to 8 characters
start
Can be integer or floating point numbers
end
Can be integer of floating point numbers
increment
Integer or floating point, positive or negative.
Example
DOWNLOAD “FREAD.BAS”
SIZE 4,4
GAP 0,0
DENSITY 8
SPEED 3
DIRECTION 0
REFERENCE 0,0
SET CUTTER OFF
SET PEEL OFF
CLS
A$=""
B$=""
C$=""
H$=""
FOR I=1 TO 10 STEP 1
A$=A$+STR$(I)+" "
TEXT 10,10,"3",0,1,1,A$
NEXT
FOR I=1 TO 1000 STEP 100
B$=B$+STR$(I)+" "
TEXT 10,50,"3",0,1,1,B$
NEXT
FOR I=50 TO 10 STEP -10
C$=C$+STR$(I)+" "
Summary of Contents for WPL2
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...