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