
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 letters 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"
OCT$
Purpose
To convert a decimal numeric expression to a string that represents the value of the
numeric expression in octal notation.
Syntax
A$ = OCT$(N%)
Remarks
"A$" is a string variable to be assigned to the result.
"N%" is a numeric expression in the range 0 to 2,147,483,647; it is rounded to an
integer before OCT$(N%) is evaluated.
Example
A$ = OCT$(24) ' A$ = "30"
STR$
Purpose
To convert a numeric expression to a string.
Comentarios a estos manuales