Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Field Validation Rules in the DBC
Message
 
À
16/01/1999 11:56:10
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00176880
Message ID:
00176883
Vues:
18
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform