I am facing a situation where a variable number of a particular object will be created (1 to x, x can be very large). The various instances of the object will be referenced by an array (myObject[x]). I was wonder if anyone had input on the best way to initialize the array and subsequently "grow" or "shrink" it as the application progresses. My first thought is to dimension it to 1 and then redimension every time the array size changed. I am new to VFP so I am not sure where the performance/size benefit trade off occurs when dimensioning an array.
Thanks,
John Morrison
"Not everything that counts can be counted,
and not everything that can be counted counts"
-A. Einstein