Boardercrime Posted October 17, 2008 Share Posted October 17, 2008 (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 October 17, 2008 by Boardercrime Link to comment Share on other sites More sharing options...
andybiochem Posted October 17, 2008 Share Posted October 17, 2008 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! Link to comment Share on other sites More sharing options...
Boardercrime Posted October 20, 2008 Author Share Posted October 20, 2008 For $i = 1 to 100 $i = StringFormat("%.3d",$i) MsgBox(0,"",$i) Next Very nice, thanx for the hint ! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now