TSC AUTO ID Technology Co., Ltd. 153 Copyright 2013 All Rights Reserved.
LEFT$( )
Description
This function returns the specified number of characters down from the initial character of a string.
Syntax
LEFT$ (X$, n)
The string to be processed
The number of characters to be returned
Example
Sample code
DOWNLOAD "TEST.BAS"
SIZE 4,1
GAP 0,0
DIRECTION 1
A$="BARCODE PRINTER DEMO PRINTING"
C$=LEFT$(A$,10)
CLS
TEXT 10,10,"3",0,1,1,A$
TEXT 10,100,"3",0,1,1,"10 LEFT 10 CHARS: "+C$
PRINT 1
EOP
TEST
See Also
DOWNLOAD, EOP, END, RIGHT$(), MID$(), LEN(), STR$()