Hi Daniel,
You can simplify your code and remove hardcoded array size by properly using ALEN() function
SELECT wk_equipment
=AFIELDS(Farray)
DIMENSION Farray[ALEN(Farray,1)+1, ALEN(Farray,2)]
lnLastRow = ALEN(Farray,1)
Farray[lnLastRow,1]="PNAME1"
Farray[lnLastRow,2]="C"
Farray[lnLastRow,3]=45
Farray[lnLastRow,4]=0
Farray[lnLastRow,5]=.F.
Farray[lnLastRow,6]=.F.
...
>Hope someone can help me.
>I encountered a syntax error when run on VFP9SP1 but it worked fine on VFP7. Can anyone tell me what's wrong. It seemed I missed something. I intend to add another field into an existing table structure (wk_equipment) and create a cursor (cwk_equip) from it.
>
<snip>
--sb--