You'd also need a Clear Events.
>I always use the cancel command as my preferred methos of leaving Foxpro because if you use it in an executable it will quit but when you are running your exe from the command prompt it will merely put you back at the command prompt (which is usually whats required)