Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Alternative of Valid Event
Message
De
22/06/2008 01:35:53
 
 
À
21/06/2008 23:00:27
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01325978
Message ID:
01325990
Vues:
20
>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
  • Précédent
    Répondre
    Fil
    Voir

    Click here to load this message in the networking platform