Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What would be the best way to apply logic?
Message
De
13/09/2009 20:40:45
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
13/09/2009 08:06:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01423463
Message ID:
01423996
Vues:
98
>>
>>If anyone is interested, I can post the function and table structure here.
>I am inrested.

See my reply to Nadya - message #1423625, which includes the validation function and the table structure.

> Also what kind of rules do you have there? anythng more involved then simple functions like [ not empty(xxx) ]

Any valid Visual FoxPro expression - not empty(FieldName) was just an example. The validation function EVALUATE()s any rule you write in the rule field. For more complicated stuff, I sometimes wrote a separate function, which I invoked from the validation table. But perhaps 90% of all validations can be done with simple expressions. In the latest incarnation, variables can be defined for later use. This allows simpler expressions, and avoiding doing the same lookup multiple times for several validation rules.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform