Hi, Dmitry
This is normal,
this is linear structure
you need to write code by example:
dimension new_aMyArray( alen(aMyArray,1), alen(aMyArray,2)+1 )
FOR m.i = 1 TO alen(aMyArray,1)
FOR m.j = 1 TO alen(aMyArray,2)
new_aMyArray[m.i,m.j] = aMyArray[m.i,m.j]
NEXT
new_aMyArray[m.i,m.j] = .f.
NEXT
dimension aMyArray( alen(aMyArray,1), alen(aMyArray,2)+1 )
ACOPY(new_aMyArray,aMyArray)
HTH
>I am seeing something strange when trying to resize an array.
>
>I have an array that has, say 10 rows and 5 columns (aMyArray[10,5])
>
>I want to add a column (and later assign a value to it). Here is what I do:
>
>
>dimension aMyArray( alen(aMyArray,1), alen(aMyArray,2)+1 )
>
>
>I expected that there will be a 6th column with value .F. in every row. But, instead, all .F.-value elements go to the bottom of the array.
>
>What am I missing?
>
>Thank you.
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst