 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Frank Burleigh Guest
|
Posted: Thu May 13, 2004 10:41 pm Post subject: FindKey using nulls on a *clientdataset |
|
|
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
|
Posted: Thu May 13, 2004 11:59 pm Post subject: Re: FindKey using nulls on a *clientdataset |
|
|
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
|
Posted: Fri May 14, 2004 6:36 pm Post subject: Re: FindKey using nulls on a *clientdataset |
|
|
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 |
|
 |
|
|
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
|
|