TMedTable.IndexFiles TMedTable

property IndexFiles: TStrings ;

Description

Use IndexFiles to specify index files which should be available and maintained by the table. Adding compound index file (CDX) makes all its orders available for activation.

When file is added to the list it is opened by TMedTable and updated each time the table is modified. When file is removed from the list, it is closed and no longer maintained.

Attention! Indexes created on Mediator (ttMEDNTX and ttMEDCDX) tables are always maintained even if not specified on IndexFiles list. Still, you need to add them to the list before you may activate them.

For ttDBFCDX and ttMEDCDX tables, the CDX file with the same name as table is automatically opened when dataset is set to Active. Its orders become available and maintained, but it does not appear on IndexFiles list. For a complete list of opened index files examine AllIndexFiles property.