PickBASIC / FlashBASIC

clear statement

.md

The clear statement sets all local and common variables to 0 in a main program.

Syntax

clear

Description

In a subroutine, only the local variables are affected. Named common variables are not affected by the clear statement.

Example(s)

Reset every variable to zero / null

x = 5
clear
print x   ;* 0

See also

Referenced by