... some preliminary SETS oData = NEWOBJECT("app_data_env","progs\data_env.prg") SET DATASESSION TO oData.datasessionid oDataClass = NEWOBJECT("dataclass","libs\spotlightclasses") _vfp.Caption = "Build Hardware Tray" _SCREEN.WindowState = 2 DO FORMS forms\frmtouchbuildtray WITH oData,oDataClass READ EVENTS MESSAGEBOX("Main Form Done") QUITThe form starts up correctly and executes correctly.
CLEAR EVENTS thisform.ReleaseThe QueryUnload event has
thisform.cmdExit.Click()When I click on cmdExit the form disappears but the main VFP window stays active. I don't get the "Main Form Done" messagebox and trying to close the main VFP window gets the "Cannot Quit VFP" message.