Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Supress date validation
Message
From
13/12/2004 21:36:51
 
 
To
13/12/2004 18:10:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00968929
Message ID:
00968978
Views:
8
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform