Hi Ben,
this is the way (re)dimension works ::(
Foxpro arrays are one dimensional, they only apear as two dimensions. You can always access a two dimensional array as one dimensional.
i.e.
dimension arrBen(4,4)
arrbem = ''
arrben(2,2)='1'
?arrben(2,2),arrben(6)
If you change the number of columns all cells stay in there one dimensional order. (this is no problem if you change row number only, because the rows are added on the end)
Agnes
>clear all
>release all
>clear
>dimension arrBen(4,4)
>arrBen(2,2)='TEST'
>display memory like arrBen
>dimension arrBen(5,5)
>display memory like arrBen
>
>**Running VFP6 and Service Pack 5
>This redimension of my array does not keep my memory in the same(original) location. The word 'TEST' is now in (2,1)...furthermore, it is inconsistent. Why can it be that my redimension is not functioning correctly? It doesn't keep the variables in it's original spot. Compatible is set off.
>
>Thanks
>Ben
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]