Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to check if an array is empty??

Status
Not open for further replies.

citychap26

Programmer
Sep 19, 2004
144
GB
Hi All,

Thanks in advance, this is probably an easy one ...

I want to check that an array has a value in it, have tried

Code:
not isEmpty(vArray(0))
[code]

I get Run-time error '9'
Subscript out of range

I've tried checking that the ubound(vArray) > 0

Any ideas ? 

Cheers

SK
 
It's a dynamic array, then, and not assigned through Split (which I would give Ubound = -1, I think), but check out thread222-1489658

Roy-Vidar
 
Hi Roy,

Thanks for your answer, I'll check out the thread.

Cheers

SK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top