I haven't written any VFP for a while. Isn't there an easy way to add a
column to a single dimensional array so that the vals in the first col are
preserved? ains() seems to work only if there's more than a single col to
begin with.
-Lew

Re: Add column to 1 dimensional array. by Dan

Dan
Fri Aug 06 12:45:05 CDT 2004

Dimension a second array, and then use acopy to move the contents into the
new one:

Dimension atest[2]
atest[1]="One"
atest[2]="Two"
Dimension atest2[2,2]
Acopy(atest,atest2)
Display Memory like a*

Dan

Lew wrote:
> I haven't written any VFP for a while. Isn't there an easy way to
> add a column to a single dimensional array so that the vals in the
> first col are preserved? ains() seems to work only if there's more
> than a single col to begin with.
> -Lew



Re: Add column to 1 dimensional array. by Lew

Lew
Fri Aug 06 13:22:16 CDT 2004

Yeh, but I want to add a col to the *old* one.
-Lew



Re: Add column to 1 dimensional array. by Dan

Dan
Fri Aug 06 13:37:20 CDT 2004

So copy it back. <g>

Lew wrote:
> Yeh, but I want to add a col to the *old* one.
> -Lew