![GPRINTER GP-2120T Programming Manual Download Page 67](http://html.mh-extra.com/html/gprinter/gp-2120t/gp-2120t_programming-manual_2248971067.webp)
THERMAL BARCODE PRINTER SERIES
63
61.
MID$( )
Description
This function is used to get the specified number of characters down from
the mth character of a string.
Syntax
MID$(string, m, n)
Parameter
Description
string
The string to be processed.
m
The beginning of mth characters in the string.
1 <= m <= string length
n
The number of characters to return.
Example
DOWNLOAD "DEMO.BAS"
SIZE 3.00,3.00
GAP 0.08,0.00
SPEED 4.0
DENSITY 8
DIRECTION 0
REFERENCE 0,0
CLS
A$="TAIWAN SEMICONDUCTOR CO., LTD"
E$=MID$(A$,11,10)
TEXT 10,10,"3",0,1,1,A$
TEXT 10,200,"3",0,1,1,"10 MIDDLE CHARS: "+E$
PRINT 1
EOP
See Also
DOWNLOAD, EOP, END, LEFT$(), LEN(), RIGHT$(), STR$(), VAL()