Question

I have a Table indexed on field1 and on field2.

How do I specify, in the TTable component, that both indexes are active.

I tried:

IndexFieldNames := 'FIELD1, FIELD2';

It didn't work.

Was it helpful?

Solution

I am using a dBASE table.

dBASE tables must have a multi-field index created explicitly.

I created a new index on 'FIELD1+FIELD2' called MyIndex.

Then I set:

IndexName := 'MyIndex';

OTHER TIPS

IndexFieldNames := 'FIELD1;FIELD2';

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top