|
-
October 1st, 1999, 04:53 AM
#1
How many elements in an array
Hi!
I have a function that takes an array of integers as argument. This is a dynamic array so I don´t know how may elements in this array.
How do I find that out?
Thanks in advance
Jen
-
October 1st, 1999, 05:17 AM
#2
Re: How many elements in an array
Use LBound to get the lower bound of the array (usually 0 or 1) and UBound to get the upperbound (last entry) of the array.
Crazy D @ Work :-)
-
October 2nd, 1999, 03:12 AM
#3
Re: How many elements in an array
You could use the LBound and the Ubound functions to return the lower/upper bounds of the array
for eg.,
dim aryNames(10)
MsgBox LBound(aryNames)
MsgBox UBound(aryNames)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|