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 #55 background imageLoading...
Page #55 background image
43
Chapter 4 BASIC Commands
4.4.6 CONVERTING FOR STRINGS
Several commands are available for converting strings to uppercase or lowercase letters,
as well as converting strings to numbers, and vice versa.
ASC
Purpose
To return the decimal value for the ASCII code for the first character of a given
string.
Syntax A% = ASC(X$)
Remarks A%is an integer variable to be assigned to the result.
X$is a string variable, consisting of characters.
Example
A% = ASC(“John Thomas”)
‘ A% = 74
CHR$
Purpose To return the character for a given ASCII value.
Syntax A$ = CHR$(N%)
Remarks A$is a string variable to be assigned to the result.
N%is a numeric expression in the range of 0 to 255.
Example
A$ = CHR$(65)
‘ A$ = “A”
HEX$
Purpose
To return a string that represents the hexadecimal value (base 16) of the
decimal argument.
Syntax A$ = HEX$(N%)
Remarks A$is a string variable to be assigned to the result.
N%
is a numeric expression in the range of 0 to 2,147,483,647; it is rounded
to an integer before HEX$(N%) is evaluated.
Example
A$ = HEX$(140) ‘ A$ = “8C”
LCASE$
Purpose To return a copy of a string in which all uppercase letter
s will be converted to
lowercase letters.
Syntax A$ = LCASE$(X$)
Remarks A$is a string variable to be assigned to the result.
X$may be a string variable, string expression, or string constant.
Example
String1$ = “John Thomas”
String2$ = LCASE$(String1$)
‘ String2$ = “john Thomas”

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