Bi0haZarD Posted September 14, 2005 Share Posted September 14, 2005 (edited) god i'm embarressed to ask this, but what is the correct way to assign a string to another string along with a variable.. like... lets say i have a do until loop running, and I need to make an undetermined amount of strings... so.. like.. $string & $number = $data or.. $string[$number] = $data or how would you do this? I need to read the strings later but i don't want to have to put all the info in like a text box or something outside of the gui.. Edited September 14, 2005 by Bi0haZarD Link to comment Share on other sites More sharing options...
Marc Posted September 14, 2005 Share Posted September 14, 2005 You should use an array, for example #include <Array.au3> Dim $avArray[10] for $i = 1 to 9 $avArray[$i] = "blah" next To realize a dynamic array with a unknown number of entries you have to resize the array at runtime using ReDim. Best regards, Marc Any of my own codes posted on the forum are free for use by others without any restriction of any kind. (WTFPL) Link to comment Share on other sites More sharing options...
Bi0haZarD Posted September 14, 2005 Author Share Posted September 14, 2005 ahh many thanks, never done an array before. Link to comment Share on other sites More sharing options...
Helge Posted September 14, 2005 Share Posted September 14, 2005 What you're asking for in your first post, you can do with Assign.Assign("sec_" & @SEC, "whoah")But as Marc suggested, it's probably best to use an array... 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