>function tagdeleted() > delstatus = set('deleted') > set deleted on > replace wasdeleted with .t. > set deleted &delstatus >endfunc >>fails with an error that says the cursor is readonly which is not true cause I can edit other fields without a problem. The function is called with a ondeleted trigger. Suggestions on what I'm doing wrong?