cdkid Posted January 24, 2006 Share Posted January 24, 2006 is there a way to..say you have for $i = 0 to 10 inside that loop can u have it declare ten variables...each with the name of the value of $i? (no i dont know what $i is going to be going to) any help would be much appriciated --thanks AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide! Link to comment Share on other sites More sharing options...
CyberSlug Posted January 24, 2006 Share Posted January 24, 2006 (edited) You would want to use an array most likely Dim $whatever[11] For $i = 0 to 10 ; let's count by hundreds $whatever[$i] = ($i+1) * 100 Next For $i = 0 to 10 MsgBox(4096, "Results", $whatever[$i]) Next Edit: typos fixed Edited January 24, 2006 by CyberSlug Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
cdkid Posted January 24, 2006 Author Share Posted January 24, 2006 thanks CyberSlug AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide! Link to comment Share on other sites More sharing options...
ChrisL Posted January 24, 2006 Share Posted January 24, 2006 (edited) is there a way to..say you have for $i = 0 to 10 inside that loop can u have it declare ten variables...each with the name of the value of $i? (no i dont know what $i is going to be going to) any help would be much appriciated --thanks $i = 0 $i will increase by 1 until it reaches 10 then it will do Next Try this it might explain it For $i = 0 to 10 MsgBox (0,"$i is" ,$i) Next Edit* Cyberslug said it better.. Edited January 24, 2006 by ChrisL [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire 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