RETURN
RETURN
RETURN
COMMAND: Signals the end of a subroutine. BASIC returns to continue processing at the point
after the
GOS UB
which invoked it.
Associated keywords:
G O S U B , O N x G O S U B , O N S Q G O S U B ,
A F T E R n G O S U B , E V E R Y n G O S U B , O N B R E A K G O S U B
RIGHT$
R I G H T $ ( < s t r i n g e x p r e s s i o n > , < i n t e g e r e x p r e s s i o n > )
10 CLS
2 0 A % = " A M S T R A D "
30 B$ = RIGHT$(A$,3)
40 PRINT B$
RUN
[SCREEN CLEARS]
RAD
Ready
FUNCTION: Extracts the number of characters specified by the <integer expression> from the right
of the string expression. If the string expression is shorter than the required length, the whole
<string expression> is returned.
Associated keywords:
M I D $ , L E F T $
RND
R N D [ ( < n u m e r i c e x p r e s s i o n > ) ]
10 RANDOMIZE 23
2 0 P R I N T R N D
FUNCTION: Fetches a random number, which may be the next in sequence, a repeat of the last one,
or the first in a new sequence. The
RANDOMIZ E
command in the above program ensures that
RND
returns the same number each time
RND(0)
returns a copy of the last random number generated. Where numeric expression1 is
negative, the number sequence generated is predictable.
Associated keywords:
R A N D O M I Z E
Содержание 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 ...