title: Using string as a name of a variable
body: <p>Is it possible to use a string as a name of a variable? For Example..<br>
  I declared x as a private double  </p>
  
  <pre><code> Private TextBox1Store,TextBox2Store,TextBox3Store As Double
  </code></pre>
  
  <p>I will use that as a variables for storing value.  </p>
  
  <p>This function multiplies the number inside a label and textbox and returns a product.  </p>
  
  <pre><code> Private Function mqtyCalc(ByVal y As Integer, ByVal z As Integer) As Integer
      Dim w As Integer
      w = y * z
      Return w
   End Function
  </code></pre>
  
  <p>This part handles three textbox events.   </p>
  
  <pre><code> Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged, TextBox2.TextChanged, TextBox3.TextChanged
      Dim tb As TextBox = sender
      Dim tempObjNm As String
      tempObjNm =    tb.Name + "Strore"
      tempObjNm = mqtyCalc(someVariable.Text, Label1.Text)
  End Sub
  </code></pre>
  
  <p>And this the part I'm trying to solve.   </p>
  
  <pre><code> tempObjNm = someVariable.Name + "Strore"
   tempObjNm = mqtyCalc(tb.Text, Label1.Text)
  </code></pre>
  
  <p>The "tempObjNm" is declared inside this sub as string.<br>
  Everytime I Input a value inside the textboxs, this sub will get the name of the textbox that has been inserted a value and the name will be added "Store" at their end Jus to mimic the variable name declared above. Example,  </p>
  
  <p>temObjNm = TextBox1Store (mimicking the Private TextBox1Store)<br>
  temObjNm is currently a string declared by </p>
  
  <pre><code>  Dim tempObjNm As String
  </code></pre>
  
  <p>As a string</p>
  
  <p>This part is the storing part of the sub</p>
  
  <pre><code> tempObjNm = mqtyCalc(tb.Text, 4)
  </code></pre>
  
  <p>(Take note that the value of tempObjNm = "TextBox1Store"</p>
  
  <p>When I print TextBox1Store, it prints 0   </p>
  
  <p>How is that? Is it not possible to use a string for mimicking the varible just to store value in it?</p>