CLEAR Statement

Initializes all program variables to zero.

Syntax

CLEAR

Operation

The CLEAR statement can be used at the beginning of a program to initialize all possible variables or at any point within a program to reinitialize variables.

Programs should not access a variable until a value has been assigned to it.

Example

X = 5
Y = Y+1
.
.
CLEAR

Reinitializes all variables to zero.

Go to top button