-
Exiting Function???
I'm currently writing a program, and I noticed a few strange things.
I went into debug mode and noticed that this statement:
ReDim Preserve glo.Links(1 To glo.CounterVal, 1 To 3)
Would exit the current function, and I have no clue why. I'm positive it is that statement as well.
(Note: glo.CounterVal = 2)
Any ideas why that would cause the problem to exit the function? Thanks, and feel free to ask any questions about the function.
-
When I was sleeping that day... someone whispered me "You can only Redim the last dimension of the Multidimensional Array while still preserving the Older values"
Maybe this is the problem??
-
Although I am preserving the older values.
ReDim Preserve glo.Links(1 To glo.CounterVal, 1 To 3)
Perhaps I'm misunderstanding something?
-
You can only Redim the last dimension of a multidimensional array
ReDim Preserve X(2,5)
'Also when redimming with Preserve do not use Lower bounds
-
Thank god, this would be pretty simple to fix.
ReDim Preserve glo.Links(1 To glo.CounterVal, 1 To 3)
all I need to do is change to this:
ReDim Preserve glo.Links(1 To 3, 1 To glo.CounterVal)
Thanks for your help, I appreciate it :).
-
Don't mention it.. My Pleasure!:)