Brother International TD-4420TN FBPL Command Reference - Page 170
MID, 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 170 highlights
10.38 MID$() Description Retrieve the specified number of characters down from the mth character of a string. Syntax MID$(string,m,n) Parameter string m n Description The string to be processed The beginning of mth characters in the string 1
165
10.38 MID$()
Description
Retrieve the specified number of characters down from the
m
th character of a string.
Syntax
MID$(string,m,n)
Parameter
Description
string
The string to be processed
m
The beginning of m
th
characters in the string
1
<=
m
<= string length
n
The number of characters to return
Example
Sample code
DOWNLOAD "DEMO.BAS"
SIZE 4,1
GAP 0,0
DIRECTION 1
A$="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
E$=MID$(A$,11,10)
CLS
TEXT 10,10, "3",0,1,1,A$
TEXT 10,200, "3",0,1,1,"10 MIDDLE CHARS:
"+E$
PRINT 1
EOP
DEMO
Result
See Also
DOWNLOAD, EOP, END, LEFT$(), LEN(), RIGHT$(), STR$(), VAL()