| View previous topic :: View next topic |
| Author |
Message |
Robert Guest
|
Posted: Sat Apr 03, 2004 9:21 am Post subject: Examine Delta property of TClientDataset |
|
|
Hi,
I like to examine the Delta property of a TClientDataset component.
The propery is declared as OLEVariant but if i inspect the
ClientDataset1.Delta or Delta[0] it is shown empty.
How is this property build up? Can I fe scroll through the changed records?
Thanx,
Robert
|
|
| Back to top |
|
 |
Dave Rowntree Guest
|
Posted: Sat Apr 03, 2004 10:10 am Post subject: Re: Examine Delta property of TClientDataset |
|
|
"Robert" <rjm (AT) xs4all (DOT) nl> wrote:
| Quote: | I like to examine the Delta property of a TClientDataset component.
The propery is declared as OLEVariant but if i inspect the
ClientDataset1.Delta or Delta[0] it is shown empty.
How is this property build up? Can I fe scroll through the changed records?
cdsTemp.Data := MyCDS.Delta; |
then examine cdsTemp.
Also, have a look in help for CDS.StatusFilter, and CDS.UpdateStatus.
--
Dave Rowntree
|
|
| Back to top |
|
 |
Robert Guest
|
Posted: Sat Apr 03, 2004 10:52 am Post subject: Re: Examine Delta property of TClientDataset |
|
|
Fun! Exactly what I wanted.
Thanks Dave.
| Quote: |
cdsTemp.Data := MyCDS.Delta;
then examine cdsTemp.
Also, have a look in help for CDS.StatusFilter, and CDS.UpdateStatus.
--
Dave Rowntree
|
|
|
| Back to top |
|
 |
Robert Guest
|
Posted: Sat Apr 03, 2004 11:14 am Post subject: Re: Examine Delta property of TClientDataset |
|
|
Hi,
One more question:
How can I manually delete a record from cdsTemp (containing the delta of my
original clientdataset).
When I delete I get the error "Operation not applicable". When I just edit
the record there seems to be no problem.
BTW: Is it save to write the data package of cdsTemp back to MyCDS like:
MyCDS.Delta := cdsTemp.Data,
after i made some changes to cdsTemp.Data?
Thanks,
Robert.
"Robert" <rjm (AT) xs4all (DOT) nl> schreef in bericht
news:406e978a (AT) newsgroups (DOT) borland.com...
| Quote: | Fun! Exactly what I wanted.
Thanks Dave.
cdsTemp.Data := MyCDS.Delta;
then examine cdsTemp.
Also, have a look in help for CDS.StatusFilter, and CDS.UpdateStatus.
--
Dave Rowntree
|
|
|
| Back to top |
|
 |
Bill Todd (TeamB) Guest
|
Posted: Sat Apr 03, 2004 4:54 pm Post subject: Re: Examine Delta property of TClientDataset |
|
|
Delta is a read only property.
--
Bill (TeamB)
(TeamB cannot respond to questions received via email)
|
|
| Back to top |
|
 |
|