Joseph,
Why not use SQL to create it in one step?
select *, 000000000000.0 as frominv, 00000000000.0 as frompo ;
into cursor orditemview readwrite ;
where ...
I'm not sure why your array based code is no longer working though. I generally use code like above to create cursors with alternate structure.
>I have recompiled my application in Visual Foxpro 7.0. from 6.0. Can I no longer alter a cursor in the following manner? If not, then what should I do instead to generate a temp. copy of a table with alterations?
>
>SELECT neworditems
>ordnumfields = afields(orditemfieldarray)
>CREATE CURSOR orditemview FROM ARRAY orditemfieldarray
>ALTER TABLE orditemview ADD COLUMN frominv N(12,1)
>ALTER TABLE orditemview ADD COLUMN frompo N(12,1)
>
>
>
>I get the error msg:
> Invalid operation for the cursor.
> alter table orditemview add column fromin n(12,1)
> error Number :1115