Deamon,
VFP always uses an ENDPROC line inside the Methods memo field to demark each of the methods. Since your code was malformed VFP was not able to remove the ENDPROC from the methods editing window.
>1) In command window type :
>
MODI FORM test
>
>2) In click method of form (any method) type :
>
x = a;
>3) Press Alt-f and Alt-S to save
>
>
>Did you get an unexpected visitor in the code?