Brother International TD-4420TN FBPL Command Reference - Page 172
STR, 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 172 highlights
10.40 STR$() Description Convert a specified value or expression into corresponding string of characters. Syntax STR$(n) Parameter n Description An integer, floating point number or mathematical expression Example Sample code Result DOWNLOAD "DEMO.BAS" SIZE 4,1 GAP 0,0 DIRECTION 1 A$="ABCDEFGHIJKLMNOPQRSTUVWXYZ" F=100 G=500 H$=STR$(F+G) CLS TEXT 10,10, "3",0,1,1,A$ TEXT 10,60, "3",0,1,1, "F=" +STR$(F) TEXT 10,110, "3",0,1,1, "G=" +STR$(G) TEXT 10,160, "3",0,1,1, "F+G=" +H$ PRINT 1 EOP DEMO See Also DOWNLOAD, EOP, END, LEFT$(), LEN(), RIGHT$(), MID$(), VAL() 167
167
10.40 STR$()
Description
Convert a specified value or expression into corresponding string of characters.
Syntax
STR$(n)
Parameter
Description
n
An integer, floating point number or mathematical expression
Example
Sample code
DOWNLOAD "DEMO.BAS"
SIZE 4,1
GAP 0,0
DIRECTION 1
A$="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
F=100
G=500
H$=STR$(F+G)
CLS
TEXT 10,10, "3",0,1,1,A$
TEXT 10,60, "3",0,1,1, "F=" +STR$(F)
TEXT 10,110, "3",0,1,1, "G=" +STR$(G)
TEXT 10,160, "3",0,1,1, "F+G=" +H$
PRINT 1
EOP
DEMO
Result
See Also
DOWNLOAD, EOP, END, LEFT$(), LEN(), RIGHT$(), MID$(), VAL()