STACK CLEAR

How to:

STACK CLEAR clears the contents of each of the stacks listed, so that each stack has no rows. This sets the FocCount variable to zero and FocIndex variable to one for each stack.


Top of page

x
Syntax: How to Use the STACK CLEAR Command

The syntax of the STACK CLEAR command is

STACK CLEAR stacklist [;]

where:

stacklist

Specifies the stacks to be initialized. Stack names are separated by blanks.

;

Terminates the command. Although the semicolon is optional, including it to allow for flexible syntax and better processing is recommended. For more information about the benefits of including the semicolon, see Terminating Command Syntax.



Example: Using STACK CLEAR

The following initializes the Emp stack:

STACK CLEAR Emp;

The next example initializes both the Emp and the Dept stacks:

STACK CLEAR Emp Dept;

WebFOCUS