 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Ken Davies Guest
|
Posted: Fri Apr 27, 2007 3:40 am Post subject: 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 |
|
| Back to top |
|
 |
Kevin Frevert Guest
|
Posted: Fri Apr 27, 2007 5:59 pm Post subject: 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 (AT) ivojo (DOT) co.uk> wrote in message
news:46312ad5$1 (AT) newsgroups (DOT) borland.com...
| Quote: | 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 |
|
|
| Back to top |
|
 |
Ken Davies Guest
|
Posted: Fri Apr 27, 2007 7:14 pm Post subject: Re: ClientDataSet IndexFieldNames |
|
|
Thanks for the response.
I'm not quite sure why it worked but I ended up deleting the ClientDataSet
from the form and dropping a new one there and it works fine. Must have been
some property I'd altered accidentally.
Thanks,
Ken
"Kevin Frevert" <kevin (AT) workdrinkingicewater (DOT) com> wrote in message
news:4631f393$1 (AT) newsgroups (DOT) borland.com...
| Quote: | 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 (AT) ivojo (DOT) co.uk> wrote in message
news:46312ad5$1 (AT) newsgroups (DOT) borland.com...
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
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|