General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
>If I have a field validation rule set in the DBC and it is fired on a form that uses data buffering, a dialog window appears with my error message text in it. The dialog has 3 buttons with the middle one being 'REVERT'. What does revert do at that point (aside from completely screwing up my app) and is there a way to keep that button from being active or to not be visible? Thanks.
Revert is equal to "UNDO", put it back the way it was...
With respect to the error message, are you using optimistic or pessimistic table buffering. If I recall, the optimistic won't give the error until you try to leave the record and move to another or try to commit it. You may ultimately have to write your own error trap routine. Although there are many versions out there, you may want to take a look at the VFP Wizards WizStyle classlibrary in the TXTBTNS class. There is a method UPDATEROWS() that shows how and what to trap for, for triggers...
Hope this helps as a start
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only