title: How can I change myLable1.Text by calling it as a variable
body: <p>Let me preface this by saying I have only been learning c# a few days. I have no prior programming experience other than basic JavaScript so I'm still unsure on a lot the correct terminology. On to the question...</p>
  
  <p>Let's say I have 10 labels; myLabel1, myLabel2, myLabel3 etc and I have a variable called i.</p>
  
  <p>So how can I change the .Text of myLabel by switching out the end number for the variable i? I tried making a new string:</p>
  
  <pre><code>string labelNumber = "myLable" + Convert.ToString(i);
  </code></pre>
  
  <p>and then:</p>
  
  <pre><code>lableNumber.Text = "some text";
  </code></pre>
  
  <p>Clearly this doesn't work because .Text is not a known method on lableNumber.</p>