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 

FindKey using nulls on a *clientdataset

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Frank Burleigh
Guest





PostPosted: Thu May 13, 2004 10:41 pm    Post subject: FindKey using nulls on a *clientdataset Reply with quote



Imagine one of the ClientDataSet descendents has been populated from the
data server using its commandtext. Now I want to FindKey within those
results, say, to edit the record in a dialog. There are no data aware
components involved.

How does one include NULL in the FindKey (the help suggests this
scenario has been contemplated)?

In BCB6,

FindKey(ARRAYOFCONST((an_int,a_string)) )

gets me part of the way there, but it's unclear how NULL for fields
further right should be specified. Find may be treating elements of the
key that aren't specified as NULL, bt it does sometimes happen that you
need to specify a field further right, as in

FindKey(ARRAYOFCONST((an_int,a_string,NULL,something_else)) )

Also, what about datetimes--TVarRec doesn't seem to include that as a
type. Maybe one could take it as a string...

Thanks.

PS: I ask here because of the low traffic in the cppbuilder parallel group.
--
Frank Burleigh
Indiana University School of Law
[email]burleigh (AT) indiana (DOT) edu[/email]
Back to top
Bill Todd (TeamB)
Guest





PostPosted: Thu May 13, 2004 11:59 pm    Post subject: Re: FindKey using nulls on a *clientdataset Reply with quote



Have you tried the NULL keyword?

Questions about ClientDataSet belong in the datasnap newsgroup since
CDS is part of DataSnap.

--
Bill (TeamB)
(TeamB cannot respond to questions received via email)
Back to top
Frank Burleigh
Guest





PostPosted: Fri May 14, 2004 6:36 pm    Post subject: Re: FindKey using nulls on a *clientdataset Reply with quote



Bill Todd (TeamB) wrote:
Quote:
Have you tried the NULL keyword?

Questions about ClientDataSet belong in the datasnap newsgroup since
CDS is part of DataSnap.

--
Bill (TeamB)
(TeamB cannot respond to questions received via email)

Yes. Thanks for the tip on best newsgroup.
--
Frank Burleigh
Indiana University School of Law
[email]burleigh (AT) indiana (DOT) edu[/email]

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) 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.