GordonFreeman Posted February 26, 2012 Share Posted February 26, 2012 (edited) I need: For $i = 1 to 5 case $i $read = IniRead("test.ini", "test", "test" & $i, "error") Next Well, I need it to not have to define the various cases in my script already that they perform the same function logically instead of numbers has to be the respective names of the variables is it possible? or I have to define each case Edited February 26, 2012 by GordonFreeman Frabjous Installation Link to comment Share on other sites More sharing options...
Blue_Drache Posted February 26, 2012 Share Posted February 26, 2012 (edited) Look up Arrays in the help file. Dim $read[6] For $i=1 to 5 $read[$i] = IniRead("test.ini", "test", "test" & $i, "error") Next Edited February 26, 2012 by Blue_Drache Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
GordonFreeman Posted February 26, 2012 Author Share Posted February 26, 2012 Exactly, I was supposed to exemplify this, but need to do this the button, since their names are the buttons: $ button1, $ button2, $ button3, $ button4, $button5 anyway, I appreciate the help Frabjous Installation Link to comment Share on other sites More sharing options...
Blue_Drache Posted February 26, 2012 Share Posted February 26, 2012 It doesn't matter what you call the array... You can call it $read[x] or you can call it $button[x] Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache 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