Jump to content

Recommended Posts

Posted

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!
Posted (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 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!
Posted

thanks CyberSlug :lmao:

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!
Posted (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 by ChrisL

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
  • Recently Browsing   0 members

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