title: Declaring a dynamic array not working as expected
body: <pre class="lang-vb prettyprint-override"><code>RsProxyList.Open objDBCommand,,1,1
  dim recCount:recCount = RsProxyList.RecordCount
  Dim output(recCount,2)
  </code></pre>
  
  <p>I get an error because recCount is of wrong type. I have tried to convert it to <code>Int</code> but that does not work either. The following works fine:</p>
  
  <pre class="lang-vb prettyprint-override"><code>RsProxyList.Open objDBCommand,,1,1
  dim recCount:recCount = RsProxyList.RecordCount
  Dim output(3,2)
  </code></pre>
  
  <p>How do I convert <code>recCount</code> to get this array declaration to work?</p>