Stack Management Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Arrays and Data-Structures > STK. - Stack > STK.-Management >

Stack Management Commands

STK.Close All

Previous Top Next


MiniRobotLanguage (MRL)

 

STK.Close All

Close all stacks created using STK.New or STK.Clone

 

 

Intention

 

The STK.Close All command is used to close and clean up all stacks that have been created using STK.New or STK.Clone. This command is equivalent to calling STK.End on every active stack handle.

This is particularly useful for ensuring that all stack resources are properly released at the end of a script or when a cleanup operation is required.

 

 

Syntax

 

STK.Close All

 

 

Parameter Explanation

 

This command does not take any parameters.

 

 

Example

 

'***********************************

' STK.Close All - Sample Script

'***********************************

' Create multiple stacks

STK.New|$$STK1|s

STK.New|$$STK2|i

STK.Clone|$$STK1|$$STK3

' Close all stacks

STK.Close All

' End the script

ENR.

 

 

Remarks

 

-

 

 

Limitations:

- This command will close all stacks, including those that may still be in use. Use with caution.

 

See also:

 

STK.New

STK.Clone

STK.End