Link to home
Start Free TrialLog in
Avatar of dma70
dma70Flag for United States of America

asked on

VB function that accepts an array of unknown length

Would like a sample function that takes as its argument any array (one or two dimensions) and then gets its length (or if its two dimensional its length in both directions).  Then allows me to do some sort of calculation on it and return that value (e.g. average, sum, max min).
ASKER CERTIFIED SOLUTION
Avatar of ste5an
ste5an
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dma70

ASKER

Thank you that is very useful.   What did you use to find this?
Avatar of dma70

ASKER

ste5an:   I just tried one of the functions listed.  Do you know why the following gives me an error?:

IsArrayAllocated
Avatar of dma70

ASKER

thanks -- I was able to get the function to compile when I added the huge number of functions your textbook referred to.   But the program still fails on the Array Allocation test.

Despite what you sent me - I think this is beyond my comprehension.    All I care about is that the function accepts any set of cell range as an input.   It doesn't at the moment until I understand more about what allocation means.    I am not sure why this needs to be so complicated.