Brother International TD-4420TN FBPL Command Reference - Page 166
GETKEY, Description, Syntax, Example, See Also
View all Brother International TD-4420TN manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 166 highlights
10.34 GETKEY() Description Get the status of the PAUSE and FEED keys. This command waits until either key is pressed, whereupon 0 is returned if PAUSE key is pressed and 1 is returned if FEED key is pressed. Syntax GETKEY() PAUSE 0 FEED 1 Example Sample code DOWNLOAD "DEMO4.BAS" SIZE 4,3 GAP 0,0 CLS :START A=GETKEY() IF A=0 THEN GOTO PAUSEB IF A=1 THEN GOTO FEEDB :PAUSEB CLS TEXT 50,10, "4",0,1,1, "PAUSE key is pressed !" PRINT 1 GOTO START :FEEDB CLS TEXT 50,10, "4",0,1,1, "FEED key is pressed !" PRINT 1 EOP See Also DOWNLOAD, EOP, END, GOTO 161
161
10.34 GETKEY()
Description
Get the status of the
PAUSE
and
FEED
keys. This command waits until either key is pressed, whereupon
0
is returned if
PAUSE
key is pressed and
1
is returned if
FEED
key is pressed.
Syntax
GETKEY()
PAUSE
FEED
0
1
Example
Sample code
DOWNLOAD "DEMO4.BAS"
SIZE 4,3
GAP 0,0
CLS
:START
A=GETKEY()
IF A=0 THEN GOTO PAUSEB
IF A=1 THEN GOTO FEEDB
:PAUSEB
CLS
TEXT 50,10, "4",0,1,1, "PAUSE key is pressed !"
PRINT 1
GOTO START
:FEEDB
CLS
TEXT 50,10, "4",0,1,1, "FEED key is pressed !"
PRINT 1
EOP
See Also
DOWNLOAD, EOP, END, GOTO