Subject Correct place for code in form
From Randy Waldman <randwald@comcast.net>
Date Mon, 27 Apr 2015 13:53:03 -0400
Newsgroups dbase.getting-started

I have this piece of code which is necessary for my form to run properly:

> if file('f:\test_fruit.dbf')
>   drop table test_fruit
>endif

1.  It runs great at the very top of my .wfm
     -- but the compiler deletes it
2.  Tried to run it in 'form open'
    -- error message that 'file in use by another'

Any idea where I can succesully put the code so that it will execute when the form opens and not cause an error?
Thanks, randy