Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TClientDataSet: Edit() and Post() 1

Status
Not open for further replies.

smays

Programmer
Aug 18, 2009
125
US
I know I have to use Post() AFTER an Append(), which works nicely. But am I supposed to use Post() AFTER an Edit() as well? I tried both ways and the TClientDataSet is updated with the new data either way, so I just want to make sure the data isn't suddenly going to disappear or anything stupid like that if I do not use a Post() AFTER an Edit().

Steve.
 
from Help said:
Call Post to commit changes to the current record. Methods that change the dataset state, such as Edit, Insert, or Append, or that move from one record to another, such as First, Last, Next, and Prior automatically call Post.

It looks like Post is called after Edit so you should be safe. [small]Famous last words! [blush][/small]



James P. Cottingham
[sup]I'm number 1,229!
I'm number 1,229![/sup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top