Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bypass validations
Message
De
08/07/2002 10:58:43
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00676123
Message ID:
00676128
Vues:
13
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>I have a form level validations of Date field. If date is 6 months older than the current date, the message is displayed and the date must be fixed before proceeding.
>
>Now the user has a requirement, that in some cases we want to allow these old dates to go through. So, I'm thinking about new form's property ByPassDateValidation. I will ask a question in form's method, which verifies dates, and then set this flag accordingly.
>
>My problem is, I don't want to ask this question everytime. I want to ask once and then use whatever answer the user provided.
>
>I don't see a way to solve this problem without using another form's property lFirstTimeAsked. This seems to be an overkill.
>
>Do you see a simpler way?
>
>Thanks in advance.
>
>Ok, while writing I found a way: instead of Logical use numeric (1 - ByPass, 0 - Use validation) and leave this property to be .f.

What about storing NULL in the property?
NULL - not answered - ask user
.T. - answered YES - go on with no question
.F. - answered NO - do not proceed, no question

HTH
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform