Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What would be the best way to apply logic?
Message
De
10/09/2009 18:12:43
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
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01423463
Message ID:
01423547
Vues:
74
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>I already built a form with all the controls using the regular VPM textbox_ class.
>
>Now, on the form I have several from / to dates controls.
>
>I'm thinking what would be the best way to add a validation logic for from/to? Does the idea of putting the logic into Ok button for the form sounds OK, e.g. don't catch the wrong dates before the final exit?
>
>This would be the easiest thing to apply then.
>
>Any other ideas?
>
>Thanks.

Hi Nadya,

I find it convenient to postpone any validation until the user tries to save the data. This is way easier to program, you get around clumsy situations with validations involving more than one field (which seems to be the case here), and, the user has the flexibility to enter data in any order.
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