I've created a function called 'prestatieDoorlooptijd (jaar, maand)' which returns a 2 dimensional array populated with calculated values. The array itself is static, the bounds are predefined and won't change:
Dim prestatiePerPrio(1 To 2, 1 To 5) As Double
I want to axtract all elements from this array. I figured my code should look something like this:
---
Dim rPrestatieDoorlooptijd As Variant
rPrestatieDoorlooptijd = prestatieDoorlooptijd (jaar, maand)(2,5)
For i = 0 To 1
For p = 0 To 4
Msgbox("i: " + Cstr(i) + Chr(13) + "p: " + Cstr(p) + Chr(13) + Chr(13) + "Resultaat: " + rPrestatieDoorlooptijd(i,p))
Next
Next
---
However, the above doesn't work. I get an error message saying 'Variant does not contain a container'.
Can anyone tell me what I'm doing wrong?

Handling a 2 dimensional array whic... (Wolfgang Schreu... 12.Nov.04)
. . 