|
Adds a new table to the current VAccess control memory image, and initializes the associated Location, FieldList, and IndexList so that a new table definition can be added to the dictionary.
object. DdfAddTableName tableName
The DdfAddTableName method syntax has these parts:
DdfAddTableName returns a two-byte integer that holds the status of the VAccess control. If this is zero, the operation completed successfully.
DdfAddTableName is the first step in defining a new table's metadata. It affects only the VAccess control's memory image, and therefore is unaffected by the current value of RefreshLocations or DdfTransactionMode.
VAEngine.RefreshLocations = False VAEngine.DdfAddTableName tableName VAEngine.DdfModifyLocation dataLocation 'set the Fields and indexes VAEngine.FieldList = myFieldsVariant VAEngine.IndexList = myIndexVariant 'write changes to DDF - do not need to 'reset RefreshLocations VAEngine.DdfAddTable(True)
DdfAddTable, DdfModifyTableName
|
Chapter contents
Prev topic: DdfAddTable
|