DataBasic Reference > Statements and Intrinsic Functions > C > CLEAR Statement

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

RealityV15.1Online Documentation (MoTW) Revision 7

CLEAR Statement (DataBasic) (m618703+clear_s.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

CLEAR Statement

Initializes program variables to zero.

Syntax

CLEAR

Operation

The CLEAR statement can be used in an initial main program to set all local variables and all local common variables to zero; when used in a subroutine, only the local variables are set to zero. Note that in neither situation are named common variables set to zero.

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.

RealityV15.1 (MoTW) Revision 7Comment on this topic