>>This code
>>
n=adir(a,"*.prg")
>>DIMENSION a(n,6)
>>ains(a, 2,2)
>>LIST MEMORY like a
>>doesn't work as expected, the array ends up a mess. Only the first row has a cell inserted at 2nd column, the rest not quite so. However, it works properly in Chen's VFPA. Can't find it documented on his documentation page, so reporting it here.
>
>Hi Dragan,
>
>It's not bug of AINS().
>ADIR() return array with five columns.
>DIMENSION a(n,6) destroy data in array.
>
>
>MartinaJ
... or more accurately, using DIMENSION to change the number of columns in a 2-dimensional array causes the data to be "rearranged" rather than add or delete a column. Obviously if you decrease the total number of elements in the array you lose the data at the "end" of the array.