Brother International TD-4420TN FBPL Command Reference - Page 140
LOF, 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 140 highlights
10.12 LOF() Description Return the size of the specified file. Syntax LOF("FILENAME") Parameter FILENAME Description The file downloaded in the printer memory. Example Sample code DOWNLOAD "DATA1",10,1234567890 DOWNLOAD "DATA2",15,ABCDEFGHIJKLMNO DOWNLOAD "LofTest.BAS" SIZE 4,1.5 GAP 0,0 DIRECTION 1 CLS OPEN "DATA1",0 OPEN "DATA2",1 TEXT 10,20,"4",0,1,1,"LOF() FUNCTION TEST" J=LOF("DATA1") K=LOF("DATA2") TEXT 10,140,"3",0,1,1,"DATA1 IS: "+STR$(J)+"Bytes" TEXT 10,200,"3",0,1,1,"DATA2 IS: "+STR$(K)+"Bytes" PRINT 1 EOP LofTest Result See Also DOWNLOAD, EOP, OPEN, READ, EOF, SEEK, FREAD$() 135
![](/manual_guide/products/brother-international-td4420tn-fbpl-command-reference-a4fb318/140.png)
135
10.12 LOF()
Description
Return the size of the specified file.
Syntax
LOF("FILENAME")
Parameter
Description
FILENAME
The file downloaded in the printer memory.
Example
Sample code
DOWNLOAD "DATA1",10,1234567890
DOWNLOAD "DATA2",15,ABCDEFGHIJKLMNO
DOWNLOAD "LofTest.BAS"
SIZE 4,1.5
GAP 0,0
DIRECTION 1
CLS
OPEN "DATA1",0
OPEN "DATA2",1
TEXT 10,20,"4",0,1,1,"LOF() FUNCTION
TEST"
J=LOF("DATA1")
K=LOF("DATA2")
TEXT 10,140,"3",0,1,1,"DATA1 IS:
"+STR$(J)+"Bytes"
TEXT 10,200,"3",0,1,1,"DATA2 IS:
"+STR$(K)+"Bytes"
PRINT 1
EOP
LofTest
Result
See Also
DOWNLOAD, EOP, OPEN, READ, EOF, SEEK, FREAD$()