dma70
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ste5an: I just tried one of the functions listed. Do you know why the following gives me an error?:
IsArrayAllocated
IsArrayAllocated
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.
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.
ASKER