Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Validating user input
Message
De
18/04/1998 17:14:58
 
 
À
17/04/1998 18:34:44
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00093073
Message ID:
00093196
Vues:
29
If your Save button is a class of its own (it should be), and you form is subclassed (it should be too), add code to the save button to run a form method Thisform.m_ValidSave. The method can test everything, and add error meesages to a Chr(13) delimiter string. If any errors are fatal (meaning you mustn't allow user to save changes) then tell him/her what's up and don't allow save. Otherwise tell him its a warning (I do this in the MessageBox title), and save anyway... (If the errors are fatal, I ask if s/he wants to lose changes in messagebox).

Any form with no need for this validation just won't have any code in the m_ValidSave method.

Adam
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform