INSTR
I N S T R ( [ < i n t e g e r
e x p r e s s i o n > , < s t r i n g e x p r e s s i o n > , < s t r i n g
expression>)
P R I N T I N S T R ( 2 , “ B A N A N A ” , “ A N ” )
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(<n u m e r i c e x p r e s s i o n > )
PRINT INT(-1 . 9 9 5 )
-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
J O Y ( < i n t e g e r e x p r e s s i o n > )
1 0 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
Содержание CPC464
Страница 1: ......
Страница 32: ...or you can type 3e1 1e1 ENTER 300 2 3000x1000 Type 3e3 1e3 ENTER 3000000 3 3000x0 001 Type 3e3 1e 3 ENTER 3 ...
Страница 102: ...PRINT 10 AND 12 Results in 8 PRINT 10 AND 1000 Results in 8 again ...
Страница 118: ...TO DO DRAW THIS PAGE ...
Страница 219: ...actual value may be made to vary during the execution of a program ...
Страница 240: ...Text and WINDOW planner Mode 2 80 Columns ...
Страница 241: ......
Страница 245: ...Sound envelope Music planner sheet ...