Hi Mike,
Is your application dialing the number as well? The option for specifying area codes that are not long distance will not work because Mississauga which is 905 is local while Hamilton which is also 905 is long distance. I would suggest a format of 999-999-9999 or (999) 999-9999 with a textbox just preceding the one for the phone number that will only allow 1 character and will only allow a 1 or blank.
>Hi All!
>
>I live in a city that is large enough to have 2 area codes. Using an input mask like 9-999-999-9999 allows me to enter phone/fax numbers by including the 1 as the first digit for a long distance number. This inputmask is not good if the leading 1 (or 0) is not acceptable. If I change the input mask to 999-999-9999 I cannot enter the 1, and I don't have code to programmatically determine when to add the 1 or not. If the phone number were entered from right to left, it would format properly more often wouldn't it?
>
>Does anyone have a class that handles phone number formatting with the option to specify what area codes are not long distance and have it preface the 1 when the area code is outside the specified set?
>
>Thanks!
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada
cmagee@metroland.comNever mistake having a career with having a life.