Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need assistance with 'field validation'
Message
De
02/03/2003 10:48:39
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
02/03/2003 10:41:21
Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00759567
Message ID:
00760117
Vues:
22
>Dana,
>
>Of course. You're correct in that DO CASE... is not what I'd need and several IF statements would be required. Anyway, if there were multiple fields that needed validating, is it recommended or common to create "large" IF statements within the validation rule?

A table-based approach for validation is much easier to maintain. All rules, and the corresponding texts, are in a table. Then, all you need to do is add a rule and its corresponding error message into the table.

If you are intested, I will post my validation code.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform