IMO, it's a bug. The semicolon in 'x = a;' indicates that commnad continues on the next line but there's no next line in the method. However there's next line in the code stored in the SCX file and it's ENDPROC. VFP mistakenly includes it when it parses code from SCX file back into method edit window. It doesn't happen if you hit ENTER after 'x = a;'.
>Steps:
>
>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?
--sb--