XArrayDB Reference > XArrayDB Methods > ReDim Method (XArrayDB) |
Sets the dimensions of an array object while preserving its data.
XArrayDB.ReDim rowLB, rowUB, columnLB, columnUB
rowLB and rowUB are long integers specifying the lower and upper bounds for row indexes.
columnLB and columnUB are long integers specifying the lower and upper bounds for column indexes.
This method is used to set or reset the dimensions of an XArrayDB object while preserving any existing data. Since a newly created XArrayDB object does not have any default dimensions, you must use the ReDim method before you can assign or access array elements.
The following example creates and initializes a two-dimensional XArrayDB object. The first dimension has 100 elements, with indexes starting at 1 and ending at 100. The second dimension has 6 elements, with indexes starting at 0 and ending at 5.