Brother International TD-4520TN FBPL Command Reference - Page 144
GET, Description, Syntax, Example, See Also
![]() |
View all Brother International TD-4520TN manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 144 highlights
10.16 GET Description Get one byte from file. Syntax GET file handle,var1$[,var2$][,var3$][, ...] GET file handle,var1[,var2][,var3][, ...] GET file handle,var1$[,var2$][,var3][, ...] Parameter file handle var$ var Description 0 or 1 Get a character Get ASCII value Example Sample code DOWNLOAD "DATA1",10,1234567890 DOWNLOAD "TEST.BAS" a$="" b$="" c=0 d$="" e$="" OPEN "DATA1",0 SEEK 0,0 GET 0,a$,b$,c SEEK 0,0 FOR I=1 TO 5 GET 0,d$ e$=e$+d$ NEXT SIZE 4,0.5 GAP 0,0 CLS TEXT 10,10,"3",0,1,1,"The first 3 characters in DATA1: "+ a$+b$+" ("+STR$(c)+")" TEXT 10,60,"3",0,1,1,"The first 5 characters in DATA1: "+e$ PRINT 1 EOP TEST Result See Also DOWNLOAD, EOP, OPEN, READ, EOF, LOF(), SEEK, PUT 139
![](/manual_guide/products/brother-international-td4420tn-fbpl-command-reference-a4fb318/144.png)
139
10.16 GET
Description
Get one byte from file.
Syntax
GET file handle,var1$[,var2$][,var3$][, …]
GET file handle,var1[,var2][,var3][, …]
GET file handle,var1$[,var2$][,var3][, …]
Parameter
Description
file handle
0
or
1
var$
Get a character
var
Get ASCII value
Example
Sample code
DOWNLOAD "DATA1",10,1234567890
DOWNLOAD "TEST.BAS"
a$=""
b$=""
c=0
d$=""
e$=""
OPEN "DATA1",0
SEEK 0,0
GET 0,a$,b$,c
SEEK 0,0
FOR I=1 TO 5
GET 0,d$
e$=e$+d$
NEXT
SIZE 4,0.5
GAP 0,0
CLS
TEXT 10,10,"3",0,1,1,"The first 3 characters in DATA1: "+ a$+b$+"
("+STR$(c)+")"
TEXT 10,60,"3",0,1,1,"The first 5 characters in DATA1: "+e$
PRINT 1
EOP
TEST
Result
See Also
DOWNLOAD, EOP, OPEN, READ, EOF, LOF(), SEEK, PUT