title: VB6 overflow error with large integers
body: <p>I am trying to set an integer value as such:</p>
  
  <pre><code>Dim intID as integer
  intID = x * 10000
  </code></pre>
  
  <p>This works ok when <code>x</code> is 3 or less. But when <code>x</code> is 4, this gives me the error:</p>
  
  <blockquote>
    <p>run-time error 6 
    Overflow</p>
  </blockquote>
  
  <p>I don't understand why this is. I can set <code>intID</code> to 40000 directly without any problems, so it's obviously capable of storing large numbers.</p>
  
  <p><img src="https://i.stack.imgur.com/gND2M.png" alt="enter image description here"></p>