Guest Luckyjava Posted April 29, 2004 Share Posted April 29, 2004 Hello, I´ve a problem. I would like to make this: $variable1=1 $variable2=2 For(...) $x=Variable1*4 now I would like to change the 1 behind variable into a 2. So if the program repeats the For(... , it shall use the second variable (2*4). In Java, I would make it with Arrays. In AutoIT 2.64 I´ve used another variable for the number, but this is not possible in AutoIt3. The numbers are unimportant, only to show the problem. Link to comment Share on other sites More sharing options...
scriptkitty Posted April 29, 2004 Share Posted April 29, 2004 lost me there, but you can use arrays in AutoIt3 Dim $variable[3]; a 3 element/dimention variable or array if you like $variable[0]=1 $variable[1]=2 $variable[2]=6 for $i = 0 To 2; this is 3 elements $x=$Variable[$i]*4 msgbox(1,"answer is",$x) next AutoIt3, the MACGYVER Pocket Knife for computers. 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