Brother International TD-4420TN FBPL Command Reference - Page 193
REPLACE, Description, Syntax, Example
View all Brother International TD-4420TN manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 193 highlights
10.56 REPLACE$() Description Return a string in which a specified substring has been replaced with another substring. Syntax REPLACE$("str1$","sub1$","sub2$") Parameter str1$ sub1$ sub2$ Description Required. The string that will be searched for replacing. Required. The specified substring that will be replaced. Required. Replacement substring. Example Sample Code DOWNLOAD F,"TEST.BAS" SIZE 3,2 GAP 0,0 DIRECTION 1 INPUT A$ DATA$ = REPLACE$(A$,"ABC","123") CLS TEXT 100,100,"3",0,1,1,DATA$ PRINT 1 EOP TEST ABCDEFG Result 188
188
10.56 REPLACE$()
Description
Return a string in which a specified substring has been replaced with another substring.
Syntax
REPLACE$(“str1$”,”sub1$”,”sub2$”)
Parameter
Description
str1$
sub1$
Required. The string that will be searched for replacing.
Required. The specified substring that will be replaced.
sub2$
Required. Replacement substring.
Example
Sample Code
DOWNLOAD F,"TEST.BAS"
SIZE 3,2
GAP 0,0
DIRECTION 1
INPUT A$
DATA$ =
REPLACE$(A$,"ABC","123")
CLS
TEXT 100,100,"3",0,1,1,DATA$
PRINT 1
EOP
TEST
ABCDEFG
Result