Declarations Section
Sparse Array Class
Sparse Array Data Structure
Copyright 1998 Entisoft
Summary: The Sparse Array data structure provides an array whose element numbers can be Long (Integer) numbers. This data structure is useful for those cases where there would not be enough memory to allocate an array with space for each element between the minimum and maximum element numbers used. This data structure provides sparse vectors, sparse matrices, and sparse cubes.
Hash Tables: This data structure uses a Hash Table to store the sparse array elements. It automatically creates the necessary HashTable data structure and provides access to it through the HT Property.
Examples: Since this Class represents a data structure, you must DIMension a instance of this Class for each Sparse Array you would like to create. The following line of Visual Basic code will create a Sparse Array: Public saTemp As New SparseArray
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: HashTable 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. 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. 2. New Name and Tag Properties allow you to associate a Name and some other arbitraty data with each instance of a SparseArray.
v2.0 Change: Embedded a local copy of an Entisoft Tools routine 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.