EasyManua.ls Logo

AMSTRAD CPC464 - Page 151

AMSTRAD CPC464
249 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...
INSTR
INSTR([<integer expression>,<string expression>,<string
expression>)
PRINT INSTR(2,“BANANA”,“AN”)
FUNCTION: Searches the first string expression, for the first occurance of the second string
expression), where the optional number at the start indicates where to start the search - otherwise
the search begins at the first character of the first string expression).
Associatedkeywords: MID$, LEFT$, RIGHT$
INT
INT(<numeric expression>)
PRINT INT(-1.995)
-2
FUNCTION: Rounds the number to the nearest lower integer, removing any fractional part. The
same as FIX for positive numbers, but returns one less than FIX for negative numbers not already
integers.
Associated keywords: CINT, FIX, ROUND
JOY
JOY(<integer expression>)
10 IF JOY(0) AND 8 THEN GOT0 100
FUNCTION: The JOY function reads a bit-significant result from the joystick specified in the
<integer expression> (either 0 or 1).
Bit Decimal
0: Up 1
1: Down 2
2: Left 4
3: Right 8
4: Fire 2 16
5: Fire 1 32
Associated keywords: INKEY

Table of Contents

Other manuals for AMSTRAD CPC464

Related product manuals