Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Field Validation Rules in the DBC
Message
 
To
16/01/1999 11:56:10
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00176880
Message ID:
00176883
Views:
17
>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
Map
View

Click here to load this message in the networking platform