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 

RowState values of TClientDataSet

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress)
View previous topic :: View next topic  
Author Message
Gloria Ho
Guest





PostPosted: Tue Jan 10, 2006 10:41 am    Post subject: RowState values of TClientDataSet Reply with quote




From John Kaster's article, "The Express Way to the Internet, Part 2", I find there are 5 rowstate values: 1, 2, 4, 8, 64.

But I find the record rowstate is 9 if edit and save twice.
Is it normal? And 9 stands for?

---
Gloria Ho
http://gloriaho.blogspot.com

Back to top
Craig Stuntz [TeamB]
Guest





PostPosted: Tue Jan 10, 2006 1:00 pm    Post subject: Re: RowState values of TClientDataSet Reply with quote



Gloria Ho wrote:

Quote:
From John Kaster's article, "The Express Way to the Internet, Part
2", I find there are 5 rowstate values: 1, 2, 4, 8, 64.

But I find the record rowstate is 9 if edit and save twice.
Is it normal? And 9 stands for?

From:

http://bdn.borland.com/borcon2004/article/paper/0,1963,32227,00.html

"Any row can have a combination of RowState values to indicate multiple
changes made to a row."

Hence 9 is the combination of 1 and 8, or "inserted and then updated."

--
Craig Stuntz [TeamB] . Vertex Systems Corp. . Columbus, OH
Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz
Want to help make Delphi and InterBase better? Use QC!
http://qc.borland.com -- Vote for important issues

Back to top
Gloria Ho
Guest





PostPosted: Wed Jan 11, 2006 12:56 am    Post subject: Re: RowState values of TClientDataSet Reply with quote




Thanks your information, Craig.
But I don't understand why is 1 + 8.
1 stands for original record and 8 is for updated record.

For a record being edited, no matter how many times, the RowState value should be 8, not 9, right?

---
Gloria Ho
http://gloriaho.blogspot.com



Back to top
Craig Stuntz [TeamB]
Guest





PostPosted: Wed Jan 11, 2006 11:51 am    Post subject: Re: RowState values of TClientDataSet Reply with quote

Gloria Ho wrote:

Quote:
For a record being edited, no matter how many times, the RowState
value should be 8, not 9, right?

I would say that no matter how many times the record has been updated
that (RowState and 8 = Cool. In other words, the 8 bit is set.

--
Craig Stuntz [TeamB] . Vertex Systems Corp. . Columbus, OH
Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz
IB 6 versions prior to 6.0.1.6 are pre-release and may corrupt
your DBs! Open Edition users, get 6.0.1.6 from http://mers.com

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