Sign in to follow this  
Followers 0
Boardercrime

For...next Help

3 posts in this topic

#1 ·  Posted (edited)

Hello

I need a little help.

Need a loop for 3 digits...

for $i=1 to 100

msgbox(0,"Hello",$i)

next

....

Normally i get this output:

1

2

3

4

5

...

99

100

But I like to get this output:

001

002

003

004

005

006

....

099

100

How can i do this ?

Hope you understand what i mean :-)

Edited by Boardercrime

Share this post


Link to post
Share on other sites



For $i = 1 to 100
    $i = StringFormat("%.3d",$i)
    MsgBox(0,"",$i)
Next


- Table UDF - create simple data tables - Line Graph UDF GDI+ - quickly create simple line graphs with x and y axes (uses GDI+ with double buffer) - Line Graph UDF - quickly create simple line graphs with x and y axes (uses AI native graphic control) - Barcode Generator Code 128 B C - Create the 1/0 code for barcodes. - WebCam as BarCode Reader - use your webcam to read barcodes - Stereograms!!! - make your own stereograms in AutoIT - Ziggurat Gaussian Distribution RNG - generate random numbers based on normal/gaussian distribution - Box-Muller Gaussian Distribution RNG - generate random numbers based on normal/gaussian distribution - Elastic Radio Buttons - faux-gravity effects in AutoIT (from javascript)- Morse Code Generator - Generate morse code by tapping your spacebar!

Share this post


Link to post
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
Sign in to follow this  
Followers 0