Whats the proper way to create a program
with just one form? I mean starting... running the form.. and exiting..
right now I have a main program
* main.prg
******** various init code (using tables etc..)*****
DO FORM fMyForm
READ EVENTS
CLEAR EVENTS
CLOSE ALL
QUIT
and inside my form I usually have 1 exit button
* fMyForm.bExit.Click
thisform.Release
and in the destroy event
* fMyForm.Destroy
QUIT
this works fine but I think after the QUIT inside fMyForm.Destroy everything is killed at that point.. so maybe I dont need
CLEAR EVENTS
CLOSE ALL
QUIT
in main.prg???
or is there a better way all together?
thanks
DJ
with just one form? I mean starting... running the form.. and exiting..
right now I have a main program
* main.prg
******** various init code (using tables etc..)*****
DO FORM fMyForm
READ EVENTS
CLEAR EVENTS
CLOSE ALL
QUIT
and inside my form I usually have 1 exit button
* fMyForm.bExit.Click
thisform.Release
and in the destroy event
* fMyForm.Destroy
QUIT
this works fine but I think after the QUIT inside fMyForm.Destroy everything is killed at that point.. so maybe I dont need
CLEAR EVENTS
CLOSE ALL
QUIT
in main.prg???
or is there a better way all together?
thanks
DJ