BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ClientDataSet IndexFieldNames

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
Ken Davies
Guest





PostPosted: Fri Apr 27, 2007 3:40 am    Post subject: ClientDataSet IndexFieldNames Reply with 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
Kevin Frevert
Guest





PostPosted: Fri Apr 27, 2007 5:59 pm    Post subject: Re: ClientDataSet IndexFieldNames Reply with 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...
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





PostPosted: Fri Apr 27, 2007 7:14 pm    Post subject: Re: ClientDataSet IndexFieldNames Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.