• 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
occur.
Ex a mp l e: If 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 c haracter variabl es "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
program.
Example: Writing in the program
10 VAC
Manual execution
VAC 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.
Format: CLEAR
CLEAR 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.
-57-