On Sep 16, 2006, at 6:15 AM, Scott Goelzer wrote:
dim maxarrayindex As integer  = 100
dim theArray(maxarrayindex) As string

RUN and a failed assertion error is thrown.


An easy workaround is to just use a constant instead of an initialized variable.

  const  maxarrayindex = 100
  dim theArray(maxarrayindex) As string

A constant has a value at compile time while an initialized variable does not. Unless you use Redim, arrays are sized at compile time so you need to supply either a constant or a literal.

Regards,
Joe Huber
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to