EasyManuals Logo

TSC TTP-244 Plus Programming Manual

TSC TTP-244 Plus
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 #170 background imageLoading...
Page #170 background image
TSC AUTO ID Technology Co., Ltd. 158 Copyright 2013 All Rights Reserved.
STRCOMP( )
Description
Returns -1, 0, or 1, based on the result of a string comparison.
Syntax
STRCOMP(str1$,str2$[,comp])
Parameter
Description
str1$
Required. Any valid string expression.
str2$
Required. Any valid string expression.
comp
Optional. Specifies the type of string comparison.
0: Binary comparison. Default.
1: Textual comparison. The comparison is case-insensitive.
Condition
Return value
str1$ sorts ahead of str2$
-1
str1$ is equal to str2$
0
str1$ sorts after str2$
1
Note:
This command has been supported since V6.81 EZ and later firmware.
Example
Sample Code
DOWNLOAD "TEST.BAS"
STR1$ = "ABCD"
STR2$ = "abcd"
result1 = STRCOMP(STR1$,STR2$)
result2 = STRCOMP(STR1$,STR2$,1)
result3 = STRCOMP(STR2$,STR1$)
SIZE 4,1
GAP 0,0
DIRECTION 1
CLS
TEXT 100,10,"3",0,1,1,STR$(result1)+": \["]"+STR1$+"\["] sorts ahead of \["]"+STR2$+"\["]"
TEXT 100,60,"3",0,1,1," "+STR$(result2)+": \["]"+STR1$+"\["] is equal to \["]"+STR2$+"\["]"
TEXT 100,110,"3",0,1,1," "+STR$(result3)+": \["]"+STR2$+"\["] sorts after \["]"+STR1$+"\["]"
PRINT 1
EOP
TEST
Result
See Also
INSTR()

Table of Contents

Other manuals for TSC TTP-244 Plus

Questions and Answers:

Question and Answer IconNeed help?

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

TSC TTP-244 Plus Specifications

General IconGeneral
Resolution203 dpi
Print Speed4 ips
Print MethodThermal Transfer / Direct Thermal
Weight2.5 kg
Max. Print Width4.25 inches
Max. Print Length90 inches
Processor32-bit RISC CPU
InterfaceRS-232
Label Width1 inch to 4.4 inches
Power Supply100-240V AC, 50/60Hz
Operating Temperature5°C to 40°C
Storage Temperature-40°C to 60°C
Humidity25% to 85% non-condensing
Label Thickness0.06 ~ 0.19 mm (2.36 ~ 7.48 mil)
Dimensions232 mm (W) x 156 mm (H) x 288 mm (D)

Related product manuals