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(phoneNumber).ToString("(000) 000-0000")
Alternatively you might be able to create a ICustomFormatter object (an
object that implements Syste.ICustomFormatter.
Hope this helps
Jay
"KFactor" <kf******@hotmail.com> wrote in message
news:Oa**************@TK2MSFTNGP15.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.