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 

Examine Delta property of TClientDataset

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier)
View previous topic :: View next topic  
Author Message
Robert
Guest





PostPosted: Sat Apr 03, 2004 9:21 am    Post subject: Examine Delta property of TClientDataset Reply with quote



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





PostPosted: Sat Apr 03, 2004 10:10 am    Post subject: Re: Examine Delta property of TClientDataset Reply with quote



"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





PostPosted: Sat Apr 03, 2004 10:52 am    Post subject: Re: Examine Delta property of TClientDataset Reply with quote



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





PostPosted: Sat Apr 03, 2004 11:14 am    Post subject: Re: Examine Delta property of TClientDataset Reply with quote

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





PostPosted: Sat Apr 03, 2004 4:54 pm    Post subject: Re: Examine Delta property of TClientDataset Reply with quote

Delta is a read only property.

--
Bill (TeamB)
(TeamB cannot respond to questions received via email)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier) 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.