Platforms to show: All Mac Windows Linux Cross-Platform

Back to StackStringMBS class.

StackStringMBS.Bottom as string

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 StackStringMBS
call s.Push "Hello"
MsgBox s.bottom

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

call s.Push "abc"

s.Clear

if s.IsEmpty then
MsgBox "OK"
end if

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

StackStringMBS.Contains(o as string) 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 string references on the stack is equal to the given double reference.
Example
dim s as new StackStringMBS

call s.Push "Hello"

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

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

MsgBox str(s.Deep)

call s.Push "Hello"

MsgBox str(s.Deep)

StackStringMBS.Pop as string

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 StackStringMBS
call s.Push "Hello"
MsgBox s.pop

Returns "" on any error.

StackStringMBS.PopBottom as string

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 StackStringMBS
call s.Push "Hello"
MsgBox s.PopBottom

StackStringMBS.Push(o as string) 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 StackStringMBS
call s.Push "Hello"

Returns true if successfull.
May fail on low memory.

StackStringMBS.Top as string

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 StackStringMBS
call s.Push "Hello"
MsgBox s.Top

Returns "" on any error.

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


The biggest plugin in space...