Data Types
VSFlexData supports several internal data types or structures, that are most commonly used in programming. However, it is just a matter of writing a few lines of code in order to create and maintain your own data structures that can be as simple or as complex as you desire.
The follwoing list describes the different internal data types that VSFlexData supports:
Array | |
Initialization Method | |
SetArray | |
Description | |
Just like Visual Basic arrays, only powerful. VSFlexData supports fixed-length and dynamic arrays. With a fixed length array, you specify the length of array when you initialize the object as an array with the SetArray method. On the other hand, with a dynamic array, you don't specify the length. With a fixed-length array, you can only add the number of elements you specified -- with a dynamic array, you can add as many elements as permitted by your system resources. |
Map | |
Initialization Method | |
SetMap | |
Description | |
Maps are like Visual Basic Collections, but greatly enhanced. |
Nil | |
Initialization Method | |
SetNil | |
Description | |
Nil is just an empty object. |
Queue | |
Initialization Method | |
SetQueue | |
Description | |
Queue is one of the classic data structures that function on the FIFO (First-In-First-Out) principle. |
Set | |
Initialization Method | |
SetSet | |
Description | |
Sets are static in nature -- i.e. you supply the data to a set at the initialization time, but can't change it. You can then easily compare other pieces of data with the set to see if they exist in the set. |
Stack | |
Initialization Method | |
SetStack | |
Description | |
Another classic data structure that functions on the LIFO (Last-In-First-Out) principle. |
Variant | |
Initialization Method | |
SetVariant | |
Description | |
Used to store variant data. By default, when you instantiate an object of VSFlexData, it is set as a variant. |