Re: Count Elements of Array

2006-06-15 Thread Chuck Pelto
On Jun 15, 2006, at 1:31 PM, Charles Yeomans wrote: On Jun 15, 2006, at 3:27 PM, Chuck Pelto wrote: What is the call to get the number of elements/items in an array? There isn't one. UBound returns the index of the last element of an array. Since the first element has index 0, the numb

Re: Count Elements of Array

2006-06-15 Thread Charles Yeomans
On Jun 15, 2006, at 3:27 PM, Chuck Pelto wrote: What is the call to get the number of elements/items in an array? There isn't one. UBound returns the index of the last element of an array. Since the first element has index 0, the number of elements is 1 + UBound. Charles Yeomans _

Re: Count Elements of Array

2006-06-15 Thread Russ Jones
Hi Chuck. UBound(array) gives you the upper bound of the array. Since arrays number from 0, this is one less than the number of elements. Russ On Jun 15, 2006, at 3:27 PM, Chuck Pelto wrote: What is the call to get the number of elements/items in an array? Regards, Chuck __

Re: Count Elements of Array

2006-06-15 Thread Norman Palardy
On Jun 15, 2006, at 1:27 PM, Chuck Pelto wrote: What is the call to get the number of elements/items in an array? uBound (array) + 1 arrays start at index 0 ___ Unsubscribe or switch delivery mode:

Count Elements of Array

2006-06-15 Thread Chuck Pelto
What is the call to get the number of elements/items in an array? Regards, Chuck ___ Unsubscribe or switch delivery mode: Search the archives of this list here: