EasyManuals Logo

TSC TTP-345 Programming Manual

TSC TTP-345
252 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #173 background imageLoading...
Page #173 background image
TSC AUTO ID Technology Co., Ltd. 161 Copyright 2013 All Rights Reserved.
LTRIM$( )
Description
Removes leading blank space from a string.
Syntax
LTRIM$ (str$[,list$])
Parameter
Description
str$
The string that will be trimmed.
list$
Optional. The specific characters in list$ will be removed.
Note:
This command has been supported since V6.59 EZ and later firmware.
Example
Sample Code
DOWNLOAD "DEMO.BAS"
data1$=" 1234567 "
data2$="a1234567a"
data3$="[<12345>]"
SIZE 4,1.5
GAP 0,0
DIRECTION 1
CLS
TEXT 50,020,"3",0,1,1,"LTRIM$(\["]"+data1$+"\["]) ="+LTRIM$(data1$)
TEXT 50,050,"3",0,1,1,"TRIM$ (\["]"+data1$+"\["]) ="+TRIM$(data1$)
TEXT 50,080,"3",0,1,1,"RTRIM$(\["]"+data1$+"\["]) ="+RTRIM$(data1$)
TEXT 50,110,"3",0,1,1,"LTRIM$(\["]"+data2$+"\["],\["]a\["]) ="+LTRIM$(data2$,"a")
TEXT 50,140,"3",0,1,1,"TRIM$ (\["]"+data2$+"\["],\["]a\["]) ="+TRIM$(data2$,"a")
TEXT 50,170,"3",0,1,1,"RTRIM$(\["]"+data2$+"\["],\["]a\["]) ="+RTRIM$(data2$,"a")
TEXT 50,200,"3",0,1,1,"LTRIM$(\["]"+data3$+"\["],\["][<>]\["]) ="+LTRIM$(data3$,"[<>]")
TEXT 50,230,"3",0,1,1,"TRIM$ (\["]"+data3$+"\["],\["][<>]\["]) ="+TRIM$(data3$,"[<>]")
TEXT 50,260,"3",0,1,1,"RTRIM$(\["]"+data3$+"\["],\["][<>]\["]) ="+RTRIM$(data3$,"[<>]")
PRINT 1
EOP
DEMO
Result
See Also
TRIM$(), RTRIM$()

Table of Contents

Other manuals for TSC TTP-345

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the TSC TTP-345 and is the answer not in the manual?

TSC TTP-345 Specifications

General IconGeneral
Print MethodThermal Transfer
Resolution300 dpi
Max Print Speed5 ips
Max Print Length90" (2286 mm)
Memory8 MB Flash
InterfaceUSB 2.0, RS-232
Power SupplyExternal universal switching power supply

Related product manuals