Specifications
558
Manipulating string data
Functions
ASC
Returns the ASCII code value of a given character.
CHR$
Returns the character corresponding to a given
ASCII code.
HEX$
Converts a decimal number into the equivalent
hexadecimal string.
INSTR
Searches a specified target string for a specified
search string, and then returns the position where
the search string is found.
LEFT$
Returns the specified number of leftmost charac-
ters from a given string expression.
LEN
Returns the length (number of bytes) of a given
string.
MID$
Returns a portion of a given string expression from
anywhere in the string.
RIGHT$
Returns the specified number of rightmost charac-
ters from a given string expression.
STR$
Converts the value of a numeric expression into a
string.
VAL
Converts a string into a numeric value.
Creating user-defined functions
Statements
DEF FN
Names and defines a user-defined function.
DEF FN...END DEF
Names and defines a user-defined function.
FUNCTION...END FUNCTION Names and defines user-defined function FUNC-
TION
.
SUB...END SUB Names and defines user-defined function SUB.
Specifying included files
Statements
$INCLUDE
Specifies an included file.
REM $INCLUDE
Specifies an included file.