title: Is there any way to loop though variable names?
body: <p>So for example I have the following variables:
  Var1, Var2, Var3, Var4, Var5   - a total of 5 variables.
  All with unique data and I want to loop though them using a for loop.</p>
  
  <pre><code>//String Var1 = something, Var2 = something etc..
  for (int i = 1; i &lt;= 5; i++)
  {
  Var(i) = "something else";
  }
  //i.e I change Var(1), Var(2) etc.. to something else respectively.
  </code></pre>
  
  <p>To clarify further, ultimately I want to apply this method to iterate through multiple components in my program. I have a large number of components with styled names(e.g. label1, label2, label3 etc..) and want to change the value of these components without having to individually set their value. </p>