Gents....
I have a form that is called like this....
PUBLIC okb, okb_search && Create public variable for form ref
DO FORM kb NAME okb LINKED
READ EVENTS
DO myshutdown IN MAIN.prg
PROCEDURE myshutdown
ON SHUTDOWN && clear shutdown loop
CLEAR EVENTS
CLOSE ALL
QUIT
ENDPROC
In the QueryUnload code snippet I have...
DO myshutdown IN main.prg
On the form "kb" there is an "Exit" command button.
In the "click" event of the Exit button snippet I have...
DO myshutdown IN main.prg
To my humble but somewhat logical brain, these command should function the same. However clicking on the form/window "X" the form closes and exits immediately.
Clicking on the "Exit" command button does butkiss.
Why isn't Exit doin' the same thing as QueryUnload?
TIA - Wayne
...all this and tap dancing too!
I have a form that is called like this....
PUBLIC okb, okb_search && Create public variable for form ref
DO FORM kb NAME okb LINKED
READ EVENTS
DO myshutdown IN MAIN.prg
PROCEDURE myshutdown
ON SHUTDOWN && clear shutdown loop
CLEAR EVENTS
CLOSE ALL
QUIT
ENDPROC
In the QueryUnload code snippet I have...
DO myshutdown IN main.prg
On the form "kb" there is an "Exit" command button.
In the "click" event of the Exit button snippet I have...
DO myshutdown IN main.prg
To my humble but somewhat logical brain, these command should function the same. However clicking on the form/window "X" the form closes and exits immediately.
Clicking on the "Exit" command button does butkiss.
Why isn't Exit doin' the same thing as QueryUnload?
TIA - Wayne