When changing the DDFs, it is usually more efficient to store the changes in the ActiveX memory image until all changes are ready, and then commit them to the file using DdfAddTable. Thus, it is better to set
RefreshLocations to
False when setting
FieldList or
IndexList. You can add a field to an existing definition in Visual Basic by using the
ReDim function with the
Preserve option. And you can use
DdfModifyTableName and
DdfModifyLocation to alter the table either in the current memory image or in the DDF file itself. For example:
'We want the next operation to affect the DDFs directly,
'so we could set RefreshLocations.