Sign in to follow this  
Followers 0
AustrianOak

Count variable names to set their state

5 posts in this topic

What If I had three variables like this:

$Var1
$Var2
$Var3

How could I use a For loop to count up each one's variable name and then you that counting variable to lets say hide each control?

Share this post


Link to post
Share on other sites



Use an Array.

Share this post


Link to post
Share on other sites

As in this: ?

$Var1[0]
$Var2[1]
$Var3[2]

Share this post


Link to post
Share on other sites

More like this:

Dim $Var[5]
For $i = 0 to 4
$Var[$i] = $i
Next

Share this post


Link to post
Share on other sites

thank you paulie.

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