Jump to content

Display integers as 2 digits?


Recommended Posts

I would like to put some integers in a message box, from variables. The integers will never be greater than 2 digits, but if they are a single digit number, i'd like to display the leading 0. Is this possible?

Link to comment
Share on other sites

I would like to put some integers in a message box, from variables.  The integers will never be greater than 2 digits, but if they are a single digit number, i'd like to display the leading 0.  Is this possible?

<{POST_SNAPBACK}>

You could use this:

http://www.autoitscript.com/forum/index.php?showtopic=12979

Note: You could also use StringFormat but i think the func I made is easier to use.

Edit:Just saw GaFrosts Post. It seems StringFormat isn't so hard to use after all. :">

Edited by SolidSnake
HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...