On Mar 21, 2007, at 17:08 UTC, Charles Heizer wrote:

> I think I have got it solved but it's a hack.

There was nothing to solve; as Steve already explained, a UBound of 0
is correct for an array that contains one element.  The array ranges
from 0 to 0; its upper bound is 0.

> I was adding items to the array in a for loop, so I'm now adding this
> (theArr.Append "ToBeDeleted") before the for loop and it adds just  
> fine. Then the for loop adds the other entries in to the array and  
> after the for loop I remove theArr(0).

I agree, that is a hack, and a completely pointless one.  Delete the
theArr.Append "ToBeDeleted" and theArr.Remove(0), and you'll find that
your code works just fine without this hack.

Best,
- Joe

--
Joe Strout -- [EMAIL PROTECTED]
Verified Express, LLC     "Making the Internet a Better Place"
http://www.verex.com/

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

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to