OCT$
I OCT$(number)
Function
I
Computes the octal value of number.
OCT$ returns a string which represents the octal value of number.
The value returned is like any other string - it cannot be used
in
a
numeric expression.
Examples
PRINT
OCT$(30)
t
OCT$(50)
t
OCT$(80)
prints the following strings:
38
82
132
'($
= OCT$
0:1
84)
Y$ is a string representation of the integer quotient X/84 to base
8.
ON ERROR
GOTO
ION ERROR GOTO line
Statement I
Transfers control to line if
an
error occurs.
This lets your program "recover" from
an
error and continue
execution. (Normally, you have a particular type of error
in
mind when
you use the
ON
ERROR GOTO statement).
ON
ERROR GOTO has no effect unless it is executed before the
error occurs. To disable
it,
execute
an
ON
ERROR GOTO
0.
If you
use
ON
ERROR GOTO 0 inside an error-trapping routine, BASIC
stops execution
and
prints an error message.
2-132