EC-3150 THERMAL BARCODE PRINTER 81
Printer Global Variables
77. @LABEL
Description
This variable is used to count how many pieces of labels have been printed. It can’t be
initialized if the printer is reset. It will be memorized if the printer power is turned off.
Syntax
Write attribute: @LABEL=n or @LABEL=”n”
Read attribute: A=LABEL or A$=STR$(LABEL)
Parameter
Description
n
Number of labels printed. 0<=n<=999999999
Example
DOWNLOAD "DEMO.BAS"
SIZE 3,2.5
GAP 2 mm,0
SPEED 6
DENSITY 12
CLS
TEXT 10,50,"3",0,1,1,@LABEL
TEXT 10,100,"3",0,1,1,"@LABEL="+STR$(LABEL)
TEXT 10,150,"3",0,1,1,"*****Statement 1*****"
IF LABEL>1000 THEN
TEXT 10,200,"3",0,1,1,"LABEL>1000"
ELSE
TEXT 10,200,"3",0,1,1,"LABEL<1000"
ENDIF
TEXT 10,250,"3",0,1,1,"*****Statement 1*****"
A=LABEL
IF A>1000 THEN
TEXT 10,300,"3",0,1,1,"A>1000"
ELSE
TEXT 10,300,"3",0,1,1,"A<1000"
ENDIF
TEXT 10,350,"3",0,1,1,"*****Statement 3*****"
A$=STR$(LABEL)
IF VAL(A$)>1000 THEN
TEXT 10,400,"3",0,1,1,"VAL(A$)>1000"
ELSE
TEXT 10,400,"3",0,1,1,"VAL(A$)<1000"
ENDIF
PRINT 1,1
EOP