Input mask for both international and USA phone numbers

G

Guest

Can I have an input mask, that allows phone numbers of style (999)000-0000
and also allow international numbers not of this style.
 
T

Tim Ferguson

Can I have an input mask, that allows phone numbers of style
(999)000-0000 and also allow international numbers not of this style.

Yes and no. The InputMask is only a method for getting in the way of
users' keystrokes: it does not have any effect on the data themselves.
Therefore it would not be too hard to allow the user to manipulate the
control.

For example, use the DoubleClick event to set the InputMask to "", and
optionally change the BackgroundColor to something as a visible reminder.
Use the Form_OnCurrent or control LostFocus event to set the colour and
mask back to whatever you want.

For myself, though, I just hate IMs because they just annoy the user, and
don't protect the data. I blame Paradox...


Best wishes


Tim F
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top