For programming purposes, tabular data are most efficiently processed if stored in an array. An array is declared with a Dim statement, which also can specify its size and initial values. The size of an already declared array can be specified or changed with a ReDim or ReDim Preserve statement. The highest subscript of the array is called its upper bound and is returned with the GetUpperBound(0) method. The Clear statement releases all memory allocated to an array.
An array of labels, text boxes, or buttons is referred to as a control array.
A structure is a composite programmer-designed data type with a fixed number of fields, each of which can be of any data type.
[Page 402]
Two of the best-known methods for ordering (or sorting) arrays are the bubble sort and the Shell sort.
Any array can be searched sequentially to find the subscript associated with a sought- after value. Ordered arrays can be searched most efficiently by a binary search.
A table can be effectively stored in a two-dimensional array.