if you're at eof() in the current workarea, the replace won't happen, because the default scope of a REPLACE is the current record of the current workarea.
go get around this use
REPLACE mitable.field WITH ... IN mitable
>
>I have a situation that the REPLACE mitable.field WITH ... don't work if I'm in another table, the questions is I don't know exactly why this don't work (maybe a datasession stuff).
>
>Any can tell me when this don't works?
>
>Thanks.
Peter Franz