Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox.InputMask
Message
De
25/07/2002 09:19:34
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00682321
Message ID:
00682459
Vues:
10
Hi Bill,
You can put in anything you want. In the KeyPress event you can change the Value to be what you want. If the user enters all 10 digits of the phone number, you could assume the next one is an extension. If the user types 'x' or 'E', NODEFAULT the keypress and change the Value to what you want. If the user types a number NODEFAULT the keypress and update the Value with ALLTRIM(This.Value) + " Ext. " + CHR(m.KeyCode).
Just guessing at the code.

>Is it possible to have an x show up in the input mask for a text box? I am collecting work phone numbers in a text box that has an InputMask of "(999) 999-9999". I need to add support for extensions. What I would like to do is set the InputMask to "(999) 999-9999 Ext. 9999". But the “x” and the “.” are interpreted by VFP to mean something they do not. Is there an escape sequence I can give so it will ignore the “x” and “.” format characters?
Charlie
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform