KFactor,
Unfortunately .NET does not allow formatting of strings like VB6 does.
In addition to the other comments, what I normally do is convert the phone
number into a number (integer) then use a custom format on the integer.
Something like:
Dim phoneNumber As String = "1234567890 "
phoneNumber = Cint(phoneNumbe r).ToString("(0 00) 000-0000")
Alternatively you might be able to create a ICustomFormatte r object (an
object that implements Syste.ICustomFo rmatter.
Hope this helps
Jay
"KFactor" <kf******@hotma il.com> wrote in message
news:Oa******** ******@TK2MSFTN GP15.phx.gbl...
I would like to convert a 10-digit string phone number (1234567890) to say
(xxx) xxx-xxxx. Is there a function for this or should I write the code to
piece together one character at a time?
Any suggestions is appreciated.