Hi James,
FLDSTATE = 3 indicates an appended record. I don't think you can SETFLDSTATE on an appended record to 1 or 2; only 3 or 4.
HTH
Bruce
>Hi,
>
>I am trying to use this function to chanege the field state on a cursor populated using SPT. I get an error "Function argument value, type, or count is invalid" when I try to change the field state. It does not give me an error if I use the same use the same value as the field state.
>
>
>?GETFLDSTATE("mailmergepk") = 3
>?setFLDSTATE("mailmergepk",1) = error
>?setFLDSTATE("mailmergepk",3) = .t.
>
>
>Thanks.