Colleagues,
I have a procedure OnMenuExit in my Main.PRG, called off my bar menu (File/Exit), that closes all the open forms, files, tables, classlibs, etc. - U know what I mean.
In order for my end users to close the EXE by clicking on the main screen's X button (I use VFP's _SCREEN as MDI container), I have to have
ON SHUTDOWN DO OnMenuExit()
So, I put it into the main proc before READ EVENTS, compiled my EXE, ran it, clicked on that X - and got that error message in subject.
I tried
ON SHUTDOWN DO OnMenuExit
ON SHUTDOWN =OnMenuExit()
ON SHUTDOWN OnMenuExit
ON SHUTDOWN OnMenuExit()
and the result always was that same one...
Any idea how to fix this discrepancy?
TIA!
Regards,
Ilya
I have a procedure OnMenuExit in my Main.PRG, called off my bar menu (File/Exit), that closes all the open forms, files, tables, classlibs, etc. - U know what I mean.
In order for my end users to close the EXE by clicking on the main screen's X button (I use VFP's _SCREEN as MDI container), I have to have
ON SHUTDOWN DO OnMenuExit()
So, I put it into the main proc before READ EVENTS, compiled my EXE, ran it, clicked on that X - and got that error message in subject.
I tried
ON SHUTDOWN DO OnMenuExit
ON SHUTDOWN =OnMenuExit()
ON SHUTDOWN OnMenuExit
ON SHUTDOWN OnMenuExit()
and the result always was that same one...
Any idea how to fix this discrepancy?
TIA!
Regards,
Ilya