EasyManua.ls Logo

Commodore 128 - Page 335

Commodore 128
448 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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

Table of Contents

Other manuals for Commodore 128

Related product manuals