Re: ClientDataSet IndexFieldNames



Ken,

Can you provide the steps to reproduce the problem? What version of
Delphi are you using? I'm using D6 and no matter what I do, setting the
IndexFieldNames (to a field in the dataset), works just fine.

krf

"Ken Davies" <krdavies@xxxxxxxxxxx> wrote in message
news:46312ad5$1@xxxxxxxxxxxxxxxxxxxxxxxxx
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


.