Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Format property to limit input in textbox
Message
De
18/04/2016 17:44:07
 
 
À
18/04/2016 17:11:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01634940
Message ID:
01634941
Vues:
83
>Is it possible to, using the format property to limit the input into a textbox? For instance Only three letters - a Y for Yes, an N for No, and an M for Maybe - and have it not lose focus if one of those are not entered. I know how to do it in the Valid method, but was wondering if there was some magic to use in the Format property, or something

If it was just Y or N you could use Y as the .InputMask. If you need the extra choice of "M" then you could set the .InputMask to A and then check for valid values - but that's probably not much different from what you're doing now in the .Valid event.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform