 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Gloria Ho Guest
|
Posted: Tue Jan 10, 2006 10:41 am Post subject: RowState values of TClientDataSet |
|
|
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
|
Posted: Tue Jan 10, 2006 1:00 pm Post subject: Re: RowState values of TClientDataSet |
|
|
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
|
Posted: Wed Jan 11, 2006 12:56 am Post subject: Re: RowState values of TClientDataSet |
|
|
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
|
Posted: Wed Jan 11, 2006 11:51 am Post subject: Re: RowState values of TClientDataSet |
|
|
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 = . 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 |
|
 |
|
|
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
|
|