Brother International TD-4750TNWB FBPL Command Reference - Page 189
FSEARCH, Description, Syntax, Example
View all Brother International TD-4750TNWB manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 189 highlights
10.53 FSEARCH() Description Return the position of a string. Syntax FSEARCH(file handle, STR$) Parameter file handle STR$ Description 0 or 1 Required. Any valid string expression. Example Sample Code DOWNLOAD "DATA1",10,1234567890 DOWNLOAD "DATA2",15,ABCDEFGHIJKLMNO DOWNLOAD "Test.BAS" SIZE 4,1.5 GAP 0,0 DIRECTION 1 CLS OPEN "DATA1",0 OPEN "DATA2",1 TEXT 10,90,"4",0,1,1,"FSEARCH() FUNCTION TEST" A=FSEARCH(0,"8") B=FSEARCH(1,"J") TEXT 10,140,"3",0,1,1,"8 position is:"+STR$(A) TEXT 10,180,"3",0,1,1,"J position is:"+STR$(B) PRINT 1 EOP Test Result 184
184
10.53 FSEARCH()
Description
Return the position of a string.
Syntax
FSEARCH(file handle, STR$)
Parameter
Description
file handle
STR$
0
or
1
Required. Any valid string expression.
Example
Sample Code
DOWNLOAD "DATA1",10,1234567890
DOWNLOAD "DATA2",15,ABCDEFGHIJKLMNO
DOWNLOAD "Test.BAS"
SIZE 4,1.5
GAP 0,0
DIRECTION 1
CLS
OPEN "DATA1",0
OPEN "DATA2",1
TEXT 10,90,"4",0,1,1,"FSEARCH() FUNCTION
TEST"
A=FSEARCH(0,"8")
B=FSEARCH(1,"J")
TEXT 10,140,"3",0,1,1,"8 position
is:"+STR$(A)
TEXT 10,180,"3",0,1,1,"J position
is:"+STR$(B)
PRINT 1
EOP
Test
Result