There are eight (8) INFORM instructions dedicated for use with STRING variables.
In contrast to other variables which are all numeric-based, the STRING variable can contain characters (as well as number values). These eight instructions allow reading/editing/writing access of this character-based data.
|
VAL |
VAL Bx Sy |
Description: Takes a numeric value (must be numeric only!!) and places it into B variable.
|
VAL2STR |
VAL2STR Sx By |
Description: Takes a numeric value from a B variable and places it into the S variable, erasing the previous data in the S variable.
|
ASC |
ASC Bx Sy |
Description: Converts the value from the S variable into decimal type and places it into the B variable.
|
CHR$ |
CHR$ Sx By |
Description: Takes the decimal value of the B variable and converts it into ASCII and places it into the B variable.
|
MID$ |
MID$ Sx Sy Bz Ba |
Description: Starting at the [data in Bz]'th character of the Sy variable, it takes the next [data in Ba]# of characters and writes them to the Sx variable.
|
LEN |
LEN Bx Sy |
Description: Reads the number of characters in the S variable and writes that amount to the B variable.
|
CAT$ |
CAT$ Sx Sy Sz |
Description: Places the Sy variable into the Sx variable and then places the data in the Sz variable to the end of the Sx variable.
|
STRSTR |
STRSTR Bx Sy Sz Ba |
Description: Starting at the [data in Ba]'th character in the Sy variable, search for [data in Sz variable] and provide the pointer location to the Bx variable.
Comments
0 comments
Please sign in to leave a comment.