ShowPlugSpace

ShowPlugSpace

Stack
Stack Position Description
Stack(In) top -
Stack(Out) top VECTOR[ ]

Brings the PlugSpace setting - registered objects - as a vector in the stack.

// Set PlugSpace first
[ order Dup Get(attributeSet) salesItem Dup Get(attributeSet) ] PlugSpace
// Now get the actual PlugSpace with ShowPlugSpace
ShowPlugSpace
// the result is an opened vector like
[ CX_SALES_ORDER CX_ATTRIBUTE_SET CX_SALES_ITEM CX_ATTRIBUTE_SET ] // <-- here is the STACK-TOP!

0 ShowPlugSpace # GetElement // would bring the CX_SALES_ORDER. A vector is read from left to right!

// Element 0 is the furthest away from the stack:

[ 1 2 3 4 ] # 0 Swap GetElement // You will get the 1!


// The following phrase will not change the PlugSpace:
ShowPlugSpace PlugSpace
// The following phrase will turn around the PlugSpace hierarchy:
ShowPlugSpace Revert PlugSpace

Related topics