B
bpsdgnews
Hi,
I declared two arrays like this:
Dim Tussentijden(0, 0) As Integer
Dim Intervals(0, 0) As Integer
They both stay unused for a while and then somewhere in code I ReDim
them like this:
ReDim Preserve Tussentijden(psmi.iTotalFiles - 1, AantalTussentijden -
1)
ReDim Preserve Intervals(psmi.iTotalFiles - 1, AantalTussentijden - 1)
The first line works well, both dimensions are changed from 0 to
respectively 3 and 13.
The second line prioduces an error saying ReDim can only change the
righthandside dimension.
If that is so, why wasn't it a problem in the first line. The are
exactly alike and there is no code in between.
???????????
I declared two arrays like this:
Dim Tussentijden(0, 0) As Integer
Dim Intervals(0, 0) As Integer
They both stay unused for a while and then somewhere in code I ReDim
them like this:
ReDim Preserve Tussentijden(psmi.iTotalFiles - 1, AantalTussentijden -
1)
ReDim Preserve Intervals(psmi.iTotalFiles - 1, AantalTussentijden - 1)
The first line works well, both dimensions are changed from 0 to
respectively 3 and 13.
The second line prioduces an error saying ReDim can only change the
righthandside dimension.
If that is so, why wasn't it a problem in the first line. The are
exactly alike and there is no code in between.
???????????