Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Invalid date with textbox
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00781308
Message ID:
00781414
Vues:
15
VFP's native date check must fire before the valid event. Using the code you provded gave me the same result as before.

Einar

>>Hi,
>>
>>VFP is nice enough to not accept an invalid date when a date type is bound to a textbox control, but how can I capture this invalid date entry to give the user a "friendly" notification that the date (s)he entered was invalid.
>>
>>When I enter an invalid date it reads: "Invalid Date (press space)" on the bottom of my _screen.
>>
>>Thanks,
>>Einar
> Have you investigated the Valid Event
>
>lValid = DODEFAULT()
>if not lValid
>  =messagebox('invalid date')
>endif
>
Semper ubi sub ubi.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform