Platforms to show: All Mac Windows Linux Cross-Platform

Back to StackVariantMBS class.

StackVariantMBS.Bottom as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 3.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the bottom item of the stack and returns the value.
Example
dim s as new StackVariantMBS

call s.Push 5

MsgBox s.Bottom

StackVariantMBS.clear

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 3.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Clears the stack.
Example
dim s as new StackVariantMBS

call s.Push 5

s.Clear

if s.IsEmpty then
MsgBox "OK"
end if

StackVariantMBS.close

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 3.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The destructor.

There is no need to call this method except you want to free all resources of this object now without waiting for Xojo to do it for you.

StackVariantMBS.Contains(o as Variant) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 3.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns true if one of the variant references on the stack is equal to the given variant reference.
Example
dim s as new StackObjectMBS

call s.Push window1

if s.Contains(window1) then
MsgBox "found. OK"
else
MsgBox "not found. Failed"
end if

StackVariantMBS.Deep as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 3.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Counts how much items are on the stack.
Example
dim s as new StackVariantMBS

MsgBox str(s.Deep)

call s.Push window1

MsgBox str(s.Deep)

StackVariantMBS.Pop as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 3.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Removes the top item of the stack and returns the value.
Example
dim s as new StackVariantMBS

call s.Push 5

MsgBox s.pop

Returns nil on any error.

StackVariantMBS.PopBottom as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 3.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Removes the bottom item of the stack and returns the value.
Example
dim s as new StackVariantMBS

call s.Push 5

MsgBox s.PopBottom

StackVariantMBS.Push(o as Variant) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 3.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Pushs a value on the stack.
Example
dim s as new StackVariantMBS
call s.Push 5

Returns true if successfull.
May fail on low memory.

StackVariantMBS.Top as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 3.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the value of the top item on the stack.
Example
dim s as new StackVariantMBS

call s.Push 5

MsgBox s.top

Returns nil on any error.

The items on this page are in the following plugins: MBS DataTypes Plugin.


The biggest plugin in space...