EXAMPLES:
PRINT FRE(O) Returns the number of free bytes for BASIC
programs.
48893
PRINT FRE(1) Returns the number of free bytes for BASIC
variable storage.
64256
HEX$
Return hexadecimal number string from decimal number
HEX$(X)
This function returns a four-character string containing the
hexadecimal representation of value X ( 0 < = X < 65535). The
decimal counterpart of this function is DEC.
EXAMPLE:
PRINT HEX$(53280)
D020
Note: HEX$(0) is “0000”
INSTR
Return position of string 1 in string 2
INSTR (string 1, string 2 [.starting position])
The INSTR function searches for the first occurance of string 2
within string 1, and returns the position within the string where the
match is found. The optimal parameter for STARTING POSITION
establishes the position in string 1 where the search begins. The
STARTING POSTITION must be in the range 1 through 255. If no
match is found or, if the STARTING POSITION is greater than the
length of string 1 or if string 1 is null, INSTR returns the value 0. If
string 2 is null, INSTR returns 0.
EXAMPLE:
PRINT INSTR (“COMMODORE 128 “128”)
11
18-7