As mentioned previously, the ActiveX access method uses variant arrays to expose core DDF information. The arrays that it uses are two-dimensional arrays that have the column as the first dimension and the row as the second dimension (this ordering allows Visual Basic users to use the ReDim Preserve function to change the number of rows). The columns represent various facets of the requested information while the rows represent the collection of items. For instance,
GetTableList returns a two-dimensional array. The first dimension consists of three pieces of information—
TableID,
TableName, and
TableLocation—while the second dimension contains one row for each table in the dictionary. Getting a list of table names in Visual Basic, therefore, would be done as follows:
FieldList and
IndexList work much the same way. But because they are properties, they allow you to modify or add entries to the array. See
FieldList and
IndexList for information on the structure of the first dimension of each array. The second dimension of each array would of course represent the number of fields or indexes.