Brother International TD-4420TN FBPL Command Reference - Page 231
Printer Global Variables, 1 @LABEL, Description, Syntax, Example
View all Brother International TD-4420TN manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 231 highlights
12 Printer Global Variables 12.1 @LABEL Description Count how many pieces of labels have been printed. This attribute cannot be initialized if the printer is reset, but will be retained if the printer is turned off. Syntax Write attribute: @LABEL=n or @LABEL= "n" Read attribute: A=LABEL or A$=STR$(LABEL) Parameter n Description Number of labels printed. 01000 THEN TEXT 10,300, "3",0,1,1, "A>1000" ELSE TEXT 10,300, "3",0,1,1, "A1000" ELSE TEXT 10,400, "3",0,1,1, "VAL(A$)
226
12 Printer Global Variables
12.1 @LABEL
Description
Count how many pieces of labels have been printed. This attribute cannot be initialized if the printer is reset,
but will be retained if the printer 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
Sample code
DOWNLOAD "DEMO.BAS"
SIZE 4,2.5
GAP 0,0
DIRECTION 1
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
DEMO
Result