>>To add another row to a two column array, is it more proper to redimension or use ains? Under what circumstance would you want to use ains() and what dangers are there in using it to add rows given that it does not change its size?
>>
>
>AINS() does not redimension the array; it pushes the last row off the edge of the world into an abyss. Read the remarks at the end of the VFP Help on AINS()
>
>DIMENSION would be used to resize the array, and then AINS() to shove things in at the middle.
AINS() will move things down (if the array is re-dimensioned first) ONLY if the array is single dimensioned. If it multi-dimensioned, it "loses" the data when you try to insert a column.