Re: transaction problem with applyupdates in Delphi


[ Delphi Forum ]

Posted by SeaWolf on January 27, 2004 at 10:10:43:

In Reply to: transaction problem with applyupdates in Delphi posted by han77 on January 15, 2004 at 02:01:10:

: i have a problem with transaction

: if there is no error (etc. duplicate key) with applyUpdates this coded work fine
: but
: when there is an error data rollback
: and then i correct the data and save it again
: it wont work and save nothing

:
: *******
: procedure btnsaveclick(sender :tobject);
: begin
: StartTransaction
: try
: Master.applyupdates;
: Detail.applyupdates;
: Commit;
: except
: Rollback;
: end;
: end;
: ******


hi you must write applyupdates after then commitupdates :)
and transaction.commit :)


Related Articles and Replies:



[ Delphi Forum ]