Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP3.0b: Editing Date Fields
Message
 
To
09/01/1997 21:25:51
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00016490
Message ID:
00016989
Views:
77
>>Thanks for your advice. The VFP internal date check still occurs before the Valid event.
>>
>>Remember, I am not treating the date field as a character field. It is a date field which is why VFP seems to edit it before the Valid
>>event.
>>
>
>you might want to use the spndate control I posted on the September Issue of the VFUG newsletter
>
>Arnon

I tried a modified version of the old FPW method of doing this and it still works.

In the init method of the object:
SET NOTIFY OFF
ON READERROR Wait Window *MyDateMessage*

In the Destroy method of the object:
ON READERROR

Invalid dates produce MyDateMessage

The help text on readerror says Included for backward compatability, use the Valid method of the Object. (if it would let us !)
Glenn
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform