Casio PB-100 Instruction Manual page 58

Table of Contents

Advertisement

V A L
The VAL function changes the numbers In a character variable into a numerical value.
F o r m a t : VA L ( c b a r a c t e r v a r i a b l e )
Since this function changes the numbers in the character variable into a numerical value,
when there are no numbers in the character variable (for example. "ABC"), an error will
o c c u r .
E x a m p l e : I f Z $ = V S S e S * . VA L { Z $ ) = 7 8 9 6 3
Note: When this function is used in a program and an error occurs as a result of the
data in the variable being other than numbers, "ERR 2" will be displayed and
the program area and line number will not be displayed.
5-6-15 Memory Clear
V A C
The VAC command clears the data in all variables. It makes numerical variables "0" and
makes character variables "null".
This command can be used by writing it in a program or manually. Therefore, when you
want to clear all data prior to executing a program, make input at the beginning of the
p r o g r a m .
Example: Writing in the program
1 0
V A C
M a n u a l e x e c u t i o n
V A C
m
Note: This VAC command cannot be used in a mullistatement (refer to page 54).
Therefore, write it independently on one line.
5-6-16 Program Clear
C l e a r
c o m m a n d
A CLEAR command is used to clear a program which has been written. It is executed
manually in the "WRT" mode.
F o r m a t : C L E A R
C L E A R
A
A "CLEAR" command only clears the program which is in the currently designated
program area (P0, PI, etc.) A "CLEAR A" command clears all programs in all program
areas from P0 through P9.
- 5 7 -

Advertisement

Table of Contents
loading

Table of Contents