title: CDbl() Vs Val() in reading double values from a text box
body: <p>I have a <code>TextBox</code> named <code>ValueText</code>. when i execute the following code:</p>
  
  <pre><code>  Dim txtval As Double = 0.0
    txtval = Val(ValueText.Text)
    txtval = CDbl(ValueText.Text)
  </code></pre>
  
  <p>Both <code>Val()</code> and <code>CDbl()</code> will do the same work. then what is the difference between these two? where to use  <code>Val()</code> and  where to use <code>CDbl()</code></p>