>set talk off >set deleted on >set bell off >set sysmenu off >set multilocks on >set exclusive off >on shutdown quit > >clear >_screen.windowstate=2 >_screen.caption="MyApp v1.0, Copyright 2001 West Pointe Enterprises" >_screen.backcolor=rgb(58,110,165) >_screen.minbutton=.F. >_screen.maxbutton=.F. >vAbort=.f. && < -- >use mysystfile >if empty(mysystfile.fmyfield) then > if reccount()=0 then > append blank > endif > do form mysystform to vAbort >endif && < -- > if vAbort && < -- > clear events > quit else && < -- do form myinitialform && < -- read events && < -- > endif > >The message was getting too long. Here's what I think at this point: if vAbort, don't even get to running initialform, but qut immediately. This way, you don't even start the event drive, i.e. Read Events doesn't get executed at all. If everything's OK, it goes its merry way.