Brother International TD-4420TN FBPL Command Reference - Page 133
EOF, 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 133 highlights
10.6 EOF() Description Detect an opened download file to see whether it has reached the end of file. Syntax EOF(File Handle) Parameter File handle Description Either 0 or 1 Return value None-zero 0 Description End of file Not end of file Example Sample code DOWNLOAD "DATA",16,COMPUTER 2000 DOWNLOAD "DEMO.BAS" SIZE 3,3 GAP 0.0,0 DIRECTION 1 CLS OPEN "DATA",0 SEEK 0,0 Y=110 TEXT 10,10, "3",0,1,1, "*****EOF TEST*****" :A Temp$="" READ 0,ITEM$,P TEXT 10,Y,"2",0,1,1,ITEM$+"$" +STR$(P)+"[EOF(0)="+STR$(EOF(0))+"]" BARCODE 10,Y+25,"39",40,1,0,2,4,"PRICE-"+STR$(P) Y=Y+100 IF EOF(0)=0 THEN GOTO A PRINT 1 EOP DEMO Result See Also DOWNLOAD, EOP, OPEN, READ, SEEK 128
![](/manual_guide/products/brother-international-td4420tn-fbpl-command-reference-a4fb318/133.png)
128
10.6 EOF()
Description
Detect an opened download file to see whether it has reached the end of file.
Syntax
EOF(File Handle)
Parameter
Description
File handle
Either
0
or
1
Return value
Description
None-zero
End of file
0
Not end of file
Example
Sample code
DOWNLOAD "DATA",16,COMPUTER
2000
DOWNLOAD "DEMO.BAS"
SIZE 3,3
GAP 0.0,0
DIRECTION 1
CLS
OPEN "DATA",0
SEEK 0,0
Y=110
TEXT 10,10, "3",0,1,1, "*****EOF TEST*****"
:A
Temp$=""
READ 0,ITEM$,P
TEXT 10,Y,"2",0,1,1,ITEM$+"$" +STR$(P)+"[EOF(0)="+STR$(EOF(0))+"]"
BARCODE 10,Y+25,"39",40,1,0,2,4,"PRICE-"+STR$(P)
Y=Y+100
IF EOF(0)=0 THEN GOTO A
PRINT 1
EOP
DEMO
Result
See Also
DOWNLOAD, EOP, OPEN, READ, SEEK