Subject | How to retain iboControl values after rollback? |
---|---|
Author | Michael Fung <ibo@cmsweb.com> |
Post date | 2003-02-07T09:36:30Z |
Dear All,
I have a form with some edit controls binded to a Query. When I post
changes, I will rollback if exception occur. However, this makes all
the edit controls blank, forcing the user to type everything from
scratch. Is it possible to retain the values after a rollback?
And some of my code for reference:
try
datamodule.ibQuery1.Post;
datamodule.transaction1.commit;
except
datamodule.transaction1.rollback;
// display some error message here...
end;
Thanks,
Michael
I have a form with some edit controls binded to a Query. When I post
changes, I will rollback if exception occur. However, this makes all
the edit controls blank, forcing the user to type everything from
scratch. Is it possible to retain the values after a rollback?
And some of my code for reference:
try
datamodule.ibQuery1.Post;
datamodule.transaction1.commit;
except
datamodule.transaction1.rollback;
// display some error message here...
end;
Thanks,
Michael