title: Convert hex value to a decimal value in VB6
body: <p>How can I convert a hex value to a decimal value in VB6?</p>
  
  <p>I'm trying just to see if this works: </p>
  
  <pre><code>Dim hexVal as string
  hexVal = "#7B19AB"
  clng("&amp;H" &amp; hexVal)
  </code></pre>
  
  <p>However, I'm getting "<strong>Type MisMatch</strong>" error.</p>