title: vb basic text is not a member of double
body: <p>I have a problem of conversion. When I write <code>txta1 = txta1.Text</code>, it shows "text is not a member of double." I'm not sure why, can someone explain this to me?</p>
  
  <pre><code>Private Sub btnCalculate_Click(sender As Object, e As EventArgs) Handles btnCalculate.Click
          Dim treatments As String
          Dim ssb, ssw, msb, msw, sigmaA, sigmaB, sigmaC, sigmaabc, squaresigmaA, squaresigmaB, squaresigmaC, squaresigmaabc, f As Double
          Dim txta1, txta2, txta3, txta4, txta5, txtb1, txtb2, txtb3, txtb4, txtb5, txtc1, txtc2, txtc3, txtc4, txtc5 As Double
  
          'Data Input
          txta1 = txta1.Text
  
  
  
          treatments = lblTreatments.Text
  
  
          'Calaculation
          sigmaA = txta1 + txta2 + txta3 + txta4 + txta5
          sigmaB = txtb1 + txtb2 + txtb3 + txtb4 + txtb5
          sigmaC = txtc1 + txtc2 + txtc3 + txtc4 + txtc5
          sigmaabc = sigmaA + sigmaB + sigmaC
  
  
  
          squaresigmaA = txta1 ^ 2 + txtb2 ^ 2 + txtb3 ^ 2 + txtb4 ^ 2 + txtb5 ^ 2
          squaresigmaB = txtb1 ^ 2 + txtb2 ^ 2 + txtb3 ^ 2 + txtb4 ^ 2 + txtb5 ^ 2
          squaresigmaC = txtc1 ^ 2 + txtc2 ^ 2 + txtc3 ^ 2 + txtc4 ^ 2 + txtc5 ^ 2
          squaresigmaabc = squaresigmaA + squaresigmaB + squaresigmaC
          ssb = ((sigmaA) ^ 2 / 5 + (sigmab) ^ 2 / 5 + (sigmac) ^ 2 / 5) - (sigmaabc) ^ 2 / 15
          ssw = squaresigmaabc - ((sigmaA) ^ 2 / 5 + (sigmab) ^ 2 / 5 + (sigmac) ^ 2 / 5)
          msb = ssb / (3 - 1)
          msw = ssw / (15 - 1)
          f = msb / msw
  
          'Data output
          lblSSB.Text = ssw
          lblSSW.Text = ssw
          lblMSB.Text = msb
          lblMSW.Text = msw
          lblF.Text = f
      End Sub
  </code></pre>