Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Supress date validation
Message
 
 
À
13/12/2004 18:10:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00968929
Message ID:
00968978
Vues:
7
Dmitry,

There was a cool way of handling this for Y2K issues in Fox2.6 using ON READERROR, this will still work fine to get around the internal date validation. It's a bit mucky as you will need to call a funciton or reference the form using _Screen.ActiveForm etc. Obviously the resulting value needs to be the correct format.

i.e. in the WHEN of the control you can use
ON READERROR <insert validation call here>
Then just reset the ON READERROR when leaving the control (VALID, LOSTFOCUS etc.)

For more info it was an old Fox Advisor article by Christof Lange around 1999? I think.

>I need to supress an internal date validation in the case when grid has a column with datetime source. Instead to validate >date, I want to fire Valid() method of the control.
>Is there way to do such things?
>TIA - Dmitry
- Craig

"If you're not prepared to be wrong, you will never come up with anything original."
- Sir Ken Robinson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform