If I have this in my GUI and numbers are asked for:
$Input1 = GUICtrlCreateInput("", 15, 40, 30, 25) ; left, top, width, height
which is then output like this:
ClipPut("Pg." & GUICtrlRead($Input1) & "- " & $StandardDateSHORT & ".pdf")
is there an easy way to ensure if the input is less than 100, i.e., 1-99, that a zero gets added to 1-9 and two zeros before 10-99 automatically without the user worrying about any of that?
I ask because sometimes code to do this is easy - i.e., in my MP3 tag app, I just have to choose the right syntax for this type of thing to happen automatically, zero padding or soemthing I think it's called.
Just wondering if there was something easy enough to build right into my AutoIt GUI to ensure that any number comes out in the right format without bother to the user.
No worries if not, just would like to make this GUI truly automated in its output.
Thank you!