EasyManuals Logo
Home>TSC>Barcode Reader>TTP-243 Series

TSC TTP-243 Series Programming Manual

TSC TTP-243 Series
206 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 #143 background imageLoading...
Page #143 background image
TSC AUTO ID Technology Co., Ltd. 133 Copyright 2009 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
Example
DOWNLOAD "TEST.BAS"
STR1$ = "ABCD"
STR2$ = "abcd"
SIZE 4,1
GAP 0,0
CLS
TEXT 100,10,"3",0,1,1,STR$(result2) + ":" + STR1$ + " sorts before " + STR2$
TEXT 100,60,"3",0,1,1,STR$(result1) + ":" + STR1$ +" and "+ STR2$ + " sort equally"
TEXT 100,110,"3",0,1,1,STR$(result3) + ":" + STR2$ + " sorts after " + STR1$
PRINT 1
EOP
TEST
See Also
INSTR()

Table of Contents

Other manuals for TSC TTP-243 Series

Questions and Answers:

Question and Answer IconNeed help?

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

TSC TTP-243 Series Specifications

General IconGeneral
BrandTSC
ModelTTP-243 Series
CategoryBarcode Reader
LanguageEnglish

Related product manuals