Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alternative of Valid Event
Message
From
22/06/2008 01:35:53
 
 
To
21/06/2008 23:00:27
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01325978
Message ID:
01325990
Views:
18
>I prefer to do all validation when the user tries to save data. Some advantages:
>
  • The user may thus input data in any order. If you use a valid() event or something similar, the user may not even press a "Cancel" button - the error message will still appear.
    >
  • Sometimes some validation involves more than one field.
    >
  • It is also simpler to program that way.

    For me the biggest advantage of this pattern is the ease of translation into a browser based app.
    I follow it also, but to a lesser degree: I will at least validate "simple" vaildations like between (userinput, low, high) at the control level if they are constants and not dependent on other values. My rule of thumb is here that everything testable without extensive scripting in a browser app can be ported as well without the need to re-enter the process of discussing project specs. That includes nowadays lookup values - dynamically switching vales for lookups in HTML was the best feature of XmlHttp.

    regards

    thomas
  • Previous
    Reply
    Map
    View

    Click here to load this message in the networking platform