Stack
Previous  

The Stack object provides the following methods and properties



Methods

Clear : Clears the collection.

Contains(Obj As String) : Returns true if the collection contains Obj, false if not.
ContainsByte(Obj As Byte)
ContainsDouble(Obj As Double)
ContainsInt32(Obj As Int32) : Strongly typed versions of Contains.

Peek : Returns the item presently on the top of the stack without removing it.
PeekByte
PeekDouble
PeekInt32 : Strongly typed versions of Peek returning the appropriate type.

Push(Obj As String) : Pushes Obj onto the top of the stack
PushByte(Obj As Byte)
PushDouble(Obj As Double)
PushInt32(Obj As Int32) : Strongly typed versions of Push.

Pop : Returns the item at the top of the stack and removes it from the stack.
PopByte
PopDouble
PopInt32 : Strongly typed versions of Pop returning the appropriate type.

ToArray : Returns the contents of the stack as an array.
ToArrayByte
ToArrayDouble
ToArrayInt32 : Strongly typed versions of ToArray


Properties

I signifies readable, O signifies settable.

 
Count : Int32 [I] : The number of items in the collection.

ControlRef : Control [I] : The underlying .NET Stack collection control. Not useful within Basic4PPC.

Dllversion : Double [I] : The version number of this library.