locutus243 Posted April 12, 2006 Share Posted April 12, 2006 Hiya guys, I have a loop and each time the loop runs I want to write to a variable. I'm doing this by using the Assign() function. But then I have another loop which is reading from these variables... While 1 Send($var1) WEnd But each time it loops I want it to read from a different variable. So first time it loops I want it to read $var1, second time $var2, third time $var3 etc... I've tried various things such as using $var[1] or $var & $i but can't seem to get it. Any help would be much appreciated. Cheers Mark P.S. if this explanation is as clear as mud (as I have a habit of doing) then please let me know and I'll hav a go at explaining it better :-) Link to comment Share on other sites More sharing options...
jpm Posted April 12, 2006 Share Posted April 12, 2006 Hiya guys, I have a loop and each time the loop runs I want to write to a variable. I'm doing this by using the Assign() function. But then I have another loop which is reading from these variables... While 1 Send($var1) WEnd But each time it loops I want it to read from a different variable. So first time it loops I want it to read $var1, second time $var2, third time $var3 etc... I've tried various things such as using $var[1] or $var & $i but can't seem to get it. Any help would be much appreciated. Cheers Mark P.S. if this explanation is as clear as mud (as I have a habit of doing) then please let me know and I'll hav a go at explaining it better :-)While 1 Send($var[$i]) $i=$i+1 WEnd Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted April 12, 2006 Moderators Share Posted April 12, 2006 Look at Eval() in the help file. 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