Its 3am and I am still pulling my hair out because my forms run great in foxpro but not in an EXE. So I made a simple program that finally seems to work if i am doing something wrong let me know, I have one question as to where the clear events should go, QueryUnload or Unload
Program file hello.prg
do form c:\helloworld\forms\form1
read events
Form file form1.scx
C reated with NEW NEW FORM
All properties DEFAULT except for
SHOWWINDOW = 2 as top level form
Code placed in form1.unload procedure
thisform.release
clear events
quit
I made another form
MODAL
SHOWWINDOW = 1 in top level form
NAME oForm2
Next I put the code in button.click procedure
do form c:\helloworld\forms\form2 NAME oForm2 LINKED
And in the form2.UNLOAD procedure
thisform.release
now I am going to bed and its 3:50 AM, oops have to drive home first but I would not have slept If I didnt figure it out.
Program file hello.prg
do form c:\helloworld\forms\form1
read events
Form file form1.scx
C reated with NEW NEW FORM
All properties DEFAULT except for
SHOWWINDOW = 2 as top level form
Code placed in form1.unload procedure
thisform.release
clear events
quit
I made another form
MODAL
SHOWWINDOW = 1 in top level form
NAME oForm2
Next I put the code in button.click procedure
do form c:\helloworld\forms\form2 NAME oForm2 LINKED
And in the form2.UNLOAD procedure
thisform.release
now I am going to bed and its 3:50 AM, oops have to drive home first but I would not have slept If I didnt figure it out.