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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking Array Lengths 1

Status
Not open for further replies.

ryandoah

Programmer
Mar 5, 2004
101
US
I'm using some dynamic arrays in my code and was wondering how to tell what the final length of the array was, or whether it has a length at all.

I am looking to use it something like this:

if len(myArray()) > 0 then
..do something
else
..do something else
end if

Thanks

 
As you have posted in the VBScript forum, take a look at the UBound function.

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top