Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best ways to validate input
Message
From
24/08/1999 07:24:34
 
 
To
24/08/1999 03:37:13
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00256944
Message ID:
00256962
Views:
26
>Hi,
> I would like to know that, how does validation data being done, when user press save button or lost locus/valid for each controls??
>
>Thank you

You may get various opinions on this. Generally, if possible I validate at the field level so the user has a chance to immediately change invalid data for that control. However, others feel this is not very efficient for heads down data entry and prefer to validate at the Save. Also, sometimes it's necessary to validate a field or fields against other fields or even external criteria that might require having data in all or most fields before validation can be done. In this case I would probably wait until the Save takes place. A proper validation scheme is probably goin to depend on the specific scenario you have in any given instance.

IMO it is generally good to learn to analyze the current requirements and not be forced into the "always do it this way" mode.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Reply
Map
View

Click here to load this message in the networking platform