Re: How to determine the number of dimensions in an array

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Cool. Then that confirms that I'm not missing something thanks. Now... next
question off this one is, what'd you recommend as being the "best" way of
determining the number of dimensions in any given array passed to a
function.

Regards


Steve


"Harlan Grove" <hrlngrv@xxxxxxx> wrote in message
news:1114618935.638383.37240@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Steve wrote...
>>Is there any other (simple) way to determine the number of dimensions
> an
>>array has, other than having to iteratively cycle through calls of
>>UBOUND(myArray,N) until an error arises ?
>
> No, which is why it's one of the first things developers write a
> function to handle. FWIW, many languages (Pascal, C, FORTRAN) also lack
> any way of determining the number of array dimensions at runtime.
> Indeed, I can think of only APL and its derivatives and math/stats mini
> languages that provide built-in functions to return the number of array
> dimensions at runtime.
>


.



Relevant Pages

  • Re: arrays vs. vectors
    ... In Scheme it's called the ... in many other languages it's called an array, ... dimensions, you do it yourself. ...
    (comp.lang.scheme)
  • Re: Gaussian cluster antenna array data
    ... A gaussian array is aimed towards resonant elements in cluster form. ... but these dimensions have not been ...
    (rec.radio.amateur.antenna)
  • RE: Mass Adding Comments
    ... insert code to fill your own array as desired at the beginning of the ... 'Determine number of dimensions in array using Chip Pearson's method ... ' Loop, increasing the dimension index Ndx, until an error occurs. ... 'Exit sub if dimensions do not match ...
    (microsoft.public.excel.programming)
  • Re: Gaussian cluster antenna array data
    ... A gaussian array is aimed towards resonant elements in cluster form. ... but these dimensions have not been ...
    (rec.radio.amateur.antenna)
  • RE: Mass Adding Comments
    ... insert code to fill your own array as desired at the beginning of the ... 'Determine number of dimensions in array using Chip Pearson's method ... ' Loop, increasing the dimension index Ndx, until an error occurs. ... 'Exit sub if dimensions do not match ...
    (microsoft.public.excel.programming)