Results 1 to 4 of 4

Thread: String.Format phone number

Threaded View

  1. #1

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    String.Format phone number

    Hey,

    String.Format("{0###) ###-####}", 1231231234) produces (123) 123-1234

    String.Format("{0###) ###-####}", 123) produces
    () -123

    How can I left align it so that if only 3 digits are provided, it returns (123) -

    Thanks,
    Last edited by vbgladiator; Feb 20th, 2009 at 12:57 AM.
    Don't anthropomorphize computers -- they hate it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width