
Signature
.NET: It's About Trust!
http://vfred.mvps.org
>> I've declared a one-dimensional, fixed-size array and assigned values to
>> SOME but not all of its elements. I know UBound() will return the upper
[quoted text clipped - 4 lines]
>No. You'd have to roll yer own. Just loop backwards through the array, looking for
>the first that isn't set to a default value, then bump by one.
Or maintain a variable containing the last assigned value (or
equivalently, the next available value).
--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
Karl E. Peterson - 31 Aug 2007 20:14 GMT
>>> I've declared a one-dimensional, fixed-size array and assigned values to
>>> SOME but not all of its elements. I know UBound() will return the upper
[quoted text clipped - 7 lines]
> Or maintain a variable containing the last assigned value (or
> equivalently, the next available value).
Yeah, if this is a frequently needed value, that'd definitely be more efficient.

Signature
.NET: It's About Trust!
http://vfred.mvps.org