Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP3.0b: Editing Date Fields
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00016490
Message ID:
00016993
Vues:
82
>>>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 !)

BTW: It's a hasty example. The scope between Init & Destroy is too broad to be workable. Some cleanup like saving previous readerror, notify status, etc and restoring, is needed.
Glenn
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform