Subject RE: [IBO] Trouble in catching Post error
Author Helen Borrie (TeamIBO)
At 10:51 AM 21-02-02 +0200, Riho-Rene Ellermaa wrote:
>They were not called (I had breakpoint in the first line of OnPostError eventhandler). I haven't done anything fancy - just created query and added OnPostError event to it.
>Maybe "missing necessary fields" doesn't qualify as Post error?

For "Post error" read "Prepare or Commit error". So, if your database had no triggers or CHECK constraints on those fields, there would be no error.

If you want to do client-side validation, place code in the BeforePost event. You can raise a Delphi exception there and prevent the Post call altogether.

regards,
Helen


regards,
Helen Borrie (TeamIBO Support)

** Please don't email your support questions privately **
Ask on the list and everyone benefits
Don't forget the IB Objects online FAQ - link from any page at www.ibobjects.com