OnAssistEdit()

I have the following code snippet:

Code - OnAssistEdit()

IF AssistEdit(xRec) THEN
CurrForm.UPDATE;

But I got the following error:

OnAssistEdit.png

Thank you

Now it works. Realy strange