EasyManuals Logo
Home>CipherLab>PDA>8 Series

CipherLab 8 Series User Manual

CipherLab 8 Series
263 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 #51 background imageLoading...
Page #51 background image
39
Chapter 4 BASIC Commands
4.4 COMMANDS FOR STRING PROCESSING
This section describes BASIC commands used to manipulate sequences of ASCII
characters known as strings. In CipherLab BASIC, strings are always variable length,
from null to a maximum of 250.
4.4.1 COMBINING STRINGS
Two strings can be combined with the plus operator “+”. The string following the plus
operator is appended to the string preceding the plus operator. For example,
Data$ = DATE$ + TIME$ + EmployeeID$
SAVE_TRANSACTION(Data$)
4.4.2 COMPARING STRINGS
Two strings can be compared with the relational operators, see section 3.3.3.
A single character is greater than another character if its ASCII value is greater. For
example, the ASCII value of the letter “Bis greater than the ASCII value of the letter
“A”, so the expression “B” > “A” is true.
When comparing two strings, BASIC looks at the ASCII values of corresponding
characters. The first character where the two strings differ determines the alphabetical
order of the strings. For example, the strings aaabaaand aaaaaaaaare the same up
to the fourth character in each, “b” and “a”. Since the ASCII value of “b” is larger than
that of “a”, the expression aaabaa> aaaaaaaais true.
If there is no difference between the corresponding characters of two strings and they
are the same length, then the two strings are equal. If there is no difference between the
corresponding characters of two strings, but one of the strings is longer, the longer string
is greater than the shorter string. For example, abc= abcand aaaaaaaa> aaaaa
are both true expressions.
Leading and trailing blank spaces are significant in comparing strings. For example, the
string abcis less than the string abcsince a blank space is less than an “a”; on the
other hand, the string abc is greater than the string abc”.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the CipherLab 8 Series and is the answer not in the manual?

CipherLab 8 Series Specifications

General IconGeneral
BrandCipherLab
Model8 Series
CategoryPDA
LanguageEnglish

Related product manuals