cdx索引在table.indexfiles中设定。然后在table.indexfieldnames中使用。

解决方案 »

  1.   

    1)建第二索引时,要选中Maintained.
    1.2.都是由它所引起.
    3.是的,BDE会自动处理.(要选中Maintained.)
    Datebase Desktop中的helpMaintainedSpecifies whether to maintain the secondary index automatically.Maintained indexes are updated by Database Desktop every time the table changes.
    This speeds up certain operations like queries.
    Maintained indexes are available for keyed tables only.
    Non-maintained indexes are updated only when the index is used; for example, when you link tables or run a query.
    The operation that uses the secondary index takes slightly longer using a non-maintained index, because Database Desktop must first update the index to recognize values that you have added, deleted, or changed, and then sort the table according to the new index. Also, if a non-maintained index becomes out of date, you cannot use it to change the viewing order of records.Non-maintained indexes are most useful on tables that are read-only.
    4)yjq说的对,不过有些dbf的索引,delphi并不支持.
    5)我写了一个例子发给你.