Sign in to follow this  
Followers 0
locutus243

Numerous Variables

3 posts in this topic

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 :-)

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

Look at Eval() in the help file.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0