Are you sure that mytable is USEd? And note that you can also get an error if someone else use mytable, since ALL instructs VFP to lock the header.
>Hi,
>
>recently I started getting a syntax error when coding in a method on a form. The code I am trying to use is:
>
>
>DELETE ALL IN MyTable
>
>
>When I close the method, I get a VFP Compile error: Syntax Error.
>
>The confusing thing is that I am pretty sure I use this code all over the place, so why should it start giving me a syntax error now?
>
>FWIW, if I do it in the command window the command works.
>
>Any ideas what I am missing?