ClientDataSet IndexFieldNames



I have a ClientDataSet set up as a memory table and everything works as expected until I want to change the index.

As soon as I set IndexFieldNames at run-time to anything other than what I set at design time I get the error 'Item cannot be found in the collection corresponding to the requested name or ordinal'.

Is there any way to do want I want to achieve?

TIA

Ken Davies

.