>Hi,
>
>I have a quite strange problem. The following code demonstrates this.
>
>First, I create a simple array:
>
>dimension aTEST(3)
>
>for i=1 to 3
> aTEST(i)=i
>endfor
>
>Now, if I redimension this array:
>
>dimension aTEST(5)
>
>the values aTEST(1) ... aTEST(5) are all .f. ?? The values from 1 to 3 should have been copied to the new array? At least it worked earlier. I simply don't know why it doesn't work anymore... Maybe I should install VFP again?
Kari,
It does. Probably where you call it a second time, first array is out of scope. Try like this :
display memory like aTest && Check if array var is in scope
dimension aTEST(5)
Or:
messagebox(type('aTest[1]')) && This doesn't guarantee it's an array
messagebox(alen(aTest))
Cetin