Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validating user input
Message
From
18/04/1998 17:14:58
 
 
To
17/04/1998 18:34:44
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00093073
Message ID:
00093196
Views:
28
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
Previous
Reply
Map
View

Click here to load this message in the networking platform