Brother International TD-4420TN FBPL Command Reference - Page 139
SEEK, 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 139 highlights
10.11 SEEK Description Shift the specified file pointer to a certain position. Syntax SEEK file handle,offset Parameter file handle offset Description 0 or 1 the offset characters which are shifted to a new position Example Sample code Result DOWNLOAD "DATA",12,1234567890 DOWNLOAD "TEST.BAS" SIZE 4,1.5 GAP 0,0 DIRECTION 1 REFERENCE 0,0 CLS OPEN "DATA",0 SEEK 0,4 READ 0,Num$ TEXT 100,10,"3",0,1,1,"SEEK COMMAND TEST" BAR 100,40,300,4 TEXT 100,60,"3",0,1,1,"SHIFT 4 CHARACTERS" TEXT 100,110,"3",0,1,1,Num$ BAR 100,140,300,4 SEEK 0,0 READ 0,Num$ TEXT 100,160,"3",0,1,1,"SHIFT 0 CHARACTERS" TEXT 100,210,"3",0,1,1,Num$ PRINT 1 EOP TEST See Also DOWNLOAD, EOP, OPEN, READ, EOF, LOF, FREAD$() 134
134
10.11 SEEK
Description
Shift the specified file pointer to a certain position.
Syntax
SEEK file handle,offset
Parameter
Description
file handle
0
or
1
offset
the offset characters which are shifted to a new position
Example
Sample code
DOWNLOAD "DATA",12,1234567890
DOWNLOAD "TEST.BAS"
SIZE 4,1.5
GAP 0,0
DIRECTION 1
REFERENCE 0,0
CLS
OPEN "DATA",0
SEEK 0,4
READ 0,Num$
TEXT 100,10,"3",0,1,1,"SEEK COMMAND
TEST"
BAR 100,40,300,4
TEXT
100,60,"3",0,1,1,"SHIFT
4
CHARACTERS"
TEXT 100,110,"3",0,1,1,Num$
BAR 100,140,300,4
SEEK 0,0
READ 0,Num$
TEXT
100,160,"3",0,1,1,"SHIFT
0
CHARACTERS"
TEXT 100,210,"3",0,1,1,Num$
PRINT 1
EOP
TEST
Result
See Also
DOWNLOAD, EOP, OPEN, READ, EOF, LOF, FREAD$()