Validate an active record.


Posted by Hung on June 03, 2000 at 00:05:19:

I attempted to validate an active record data when a user tries to post the active record to the database by scrolling to another record or hit the "commit" button on the DBNavigation bar. But I ran into the problem of not being able to abort the post action when one or more data field values is not valid.

I used the TTable.BeforePost event to do my validation and called the Abort to cancel out the post action but it did not work.

Please let me know if there is another way to do this or some other API functions that I can call to cancel out of the posting action while I am in the beforepost event handler.




Related Articles and Replies: