Formatting Phone Number.

  • Thread starter Thread starter Mike Lambert
  • Start date Start date
M

Mike Lambert

If I have a string with an unformatted phone number (ie. 1234567890) what is
the easiest way to copy it into a string as a formatted number (ie.
123-456-7890).

Thanks,
Mike
 
* "Mike Lambert said:
If I have a string with an unformatted phone number (ie. 1234567890) what is
the easiest way to copy it into a string as a formatted number (ie.
123-456-7890).

You can use 'Mid' to cut out parts of the string and then build the new
string using 'String.Format' or the '&' operator.
 
Back
Top