Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to check the value in text box
Message
De
02/07/2018 16:02:41
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01660964
Message ID:
01661003
Vues:
83
>>Or, maybe vartype() is better. I tested, so far, and both work.

VARTYPE is slightly quicker but throws errors in certain circumstances.

For your text box, consider use of Format="D" or "E" along with DateFormat, StrictDateEntry and DateMark properties so you know it's a date. Or bind it to a date field in a view or dummy cursor to be 100% sure.
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us.
"
-- Shakespeare: Coriolanus, Act 1, scene 1
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform