TMedTable.AddIndexEx TMedTable

procedure AddIndexEx(const IFileName, IName, IExpression: string; Options: TIndexOptions );

Description

Use AddIndexEx to create new index for the ttDBFCDX or ttMEDCDX table associated with a dataset. The table must exist and dataset should be active before calling AddIndexEx. New index is automatically opened and added to IndexFiles and AllIndexFiles list.

AddIndexEx allows you to specify as IFileName the name of the order bag (CDX file) where to create index. AddIndex allows for new order creation only in order bag with the same name as table. Use AddIndexEx if you wish to create order bags (compound CDX index files) with the non-default name that differs from the table name.

For description of other parameters please read the AddIndex method description.