Brother International TJ-4520TN FBPL Command Reference - Page 141
LOC, Description, Syntax, Example
View all Brother International TJ-4520TN manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 141 highlights
10.13 LOC() Description Return the current read/write position within an open file. Syntax LOC(file handle) Parameter file handle Description 0 or 1 Example Sample code DOWNLOAD "DATA.DAT",30,12345678 12345678 12345678 Result DOWNLOAD "TEST.BAS" str1$ = "" location = 0 OPEN "DATA.DAT",0 READ 0,str1$ location = LOC(0) CLOSE 0 SIZE 4,1 GAP 0,0 CLS TEXT 10,10,"3",0,1,1,"str1$: "+str1$ TEXT 10,60,"3",0,1,1,"Location:"+STR$(location) PRINT 1 EOP TEST 136
136
10.13 LOC()
Description
Return the current read/write position within an open file.
Syntax
LOC(file handle)
Parameter
Description
file handle
0
or
1
Example
Sample code
DOWNLOAD "DATA.DAT",30,12345678
12345678
12345678
DOWNLOAD "TEST.BAS"
str1$ = ""
location = 0
OPEN "DATA.DAT",0
READ 0,str1$
location = LOC(0)
CLOSE 0
SIZE 4,1
GAP 0,0
CLS
TEXT 10,10,"3",0,1,1,"str1$:
"+str1$
TEXT
10,60,"3",0,1,1,"Location:"+STR$(location)
PRINT 1
EOP
TEST
Result