| Stack | Position | Description |
|---|---|---|
| Stack(In) | top | - |
| Stack(Out) | top | - |
The current stack allocation is saved. ClassiX now works with a new, empty PlugSpace. It is possible to reactivate the previous PlugSpace with the statement PlugSpacePop. There should be a PlugSpacePop for every PlugSpacePush. There are no limits for the nesting depth.
The saved PlugSpace allocation is only valid for the running command execution - until the next CleanUp.
Example
// Set variables
CreateTransObject(CX_TRANSACTION) -> txn1
"Object 1" txn1 Put(comment)
// initialize plug space vector
[ txn1 ]
PlugSpace// Check value
Plug(comment)
// Result = "Object 1"
// ## Now push the PlugSpace on hold and set a new one ##
PlugSpacePush
CreateTransObject(CX_TRANSACTION) -> txn2
"Object 2" txn1 Put(comment)
// initialize plug space vector
[ txn2 ] PlugSpace
// Check value
Plug(comment)
// Result = "Object 2"
// ## Now we pop back the parked PlugSpace and check the value again ##
PlugSpacePop
// Check value
Plug(comment)
// Result = "Object 1"