Platforms to show: All Mac Windows Linux Cross-Platform

Back to StackObjectMBS class.

StackObjectMBS.Bottom as object

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 StackObjectMBS
call s.Push window1
MsgBox window(s.Bottom).title

StackObjectMBS.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 StackObjectMBS

call s.Push window1

s.Clear

if s.IsEmpty then
MsgBox "OK"
end if

StackObjectMBS.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.

StackObjectMBS.Contains(o as object) 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 object references on the stack is equal to the given object 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

StackObjectMBS.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 StackObjectMBS

MsgBox str(s.Deep)

call s.Push window1

MsgBox str(s.Deep)

StackObjectMBS.Pop as object

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 StackObjectMBS
call s.Push window1
MsgBox window(s.pop).title

Returns nil on any error.

StackObjectMBS.PopBottom as object

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 StackObjectMBS
call s.Push window1
MsgBox window(s.PopBottom).title

StackObjectMBS.Push(o as object) 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 StackObjectMBS
call s.Push window1

Returns true if successfull.
May fail on low memory.
Does not push nil.

StackObjectMBS.Top as object

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 StackObjectMBS
call s.Push window1
MsgBox window(s.top).title

Returns nil on any error.

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


The biggest plugin in space...