Declarations Section
Stack Class
Stack Data Structure
Copyright 1998 Entisoft
Summary: The Stack is a last-in-first-out or LIFO data structure that stores values of any type. This Class provides several operations in addition to the basic Push and Pop functions.
Deques: Users who need one data structure that can be used as both a stack and a queue should use the Deque Class.
Examples: Since this Class represents a data structure, you must DIMension a instance of this Class for each Stack you would like to create. The following line of Visual Basic code will create a Stack: Public stkTemp As New Stack
Please Note: None of the examples will execute within the Debug or Immediate window because those windows do not support the definition of variables. To run these examples, you must place the code within a Function or Subroutine.
See also: Deque Class
UsingTheDataStructuresHelp Topic
Using this Class in Your Projects: Please see the UsingTheDataStructuresHelp Topic for important details about the data structure Classes such as this one within your projects.
v1.3 Changes: 1. The functions that retrieve values from the Stack now do so via an argument instead of via the function's return value. This is so that you do not have to know the type of data being returned in order to assign it into a variable. 2. This Class has been fixed to support the storage and retrieveal of Object and DataObject type Values (variables with a datatype of vbObject and vbDataObject). See the other BugFix notes within this Class for a list of the individual Functions and Subroutines that are affected by this change. 3. New Name and Tag Properties allow you to associate a Name and some other arbitraty data with each instance of a Stack.
v2.0 Change: Embedded local copies of a few Entisoft Tools routines within this Class so that this Class is no longer dependent upon routines in any of the other Entisoft Tools Classes. Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.