Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Format Function Problem

Status
Not open for further replies.

wtmckown

Programmer
Mar 19, 2003
121
0
0
US
I'm trying to format a telephone number in vb/aspx page. I'm missing something. When I use:

sGMTollFree = Format("8775555555", "(###)###-####")

the function returns the format string (###)###-#### instead of the input string in the proper format (877)555-5555.

Please reply if you can shed light on this. Thanks.

 
the phone number has to be numeric:

sGMTollFree = Format(8775555555, "(###)###-####")
 
no problem.. I didn't know till I went to VS help and checked it out
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top