Results 1 to 3 of 3

Thread: Add a 0 in front of text?

  1. #1

    Thread Starter
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765

    Add a 0 in front of text?

    I can't get my variable to have a 0 infront of it. I need it to show 09, but it won't do it.

    What variable can I use that will allow this?

    It doesn't matter that much I guess, but still, I would like to know.
    Don't Rate my posts.

  2. #2
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    You will have to format it as a string after you do your calculations with it and so on.

    VB Code:
    1. myVar = Format(myVar, "00")
    <removed by admin>

  3. #3

    Thread Starter
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765
    Thanks.
    Don't Rate my posts.

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