Respond to this message
Return to Index
Redim Dynamic array
Posted Sep 16, 2009 6:47 AM
Like most of my stuff, this is a number crunching program with several redundant nested loops.
In my program the elements will be stored to the array during runtime, based on output. So I have no info at startup and I basically need to declare an array with zero elements.
The array should get larger and smaller with each loop so I’m using REDIM and REDIM PRESERVE statements.
The program won’t compile and breaks on the REDIM statement with error “array already dimensioned”.
Also send responses to my email address