Jump to content

Numerous Variables


Recommended Posts

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...