Quitting a DDT-style application is quite easy from within PBMain. Simply perform an EXIT FUNCTION.
But how do you perform this from within, for instance, a CALLBACK FUNCTION?
This is a program flow example:
From within the main module (PBMain) my application calls a procedure (SUB) to build a DDT-style
modal dialog, containing a Quit-button and a Next-button. In case the user clicks the Quit-button, its
CALLBACK FUNCTION performs a modeless dialog: "Do you really want to quit?". Also this dialog has
2 buttons (yes and no). Clicking the yes-button should end the application.
Struggled 2 days with this problem. When the modeless dialog ends (using: DIALOG END CBHNDL)
"DIALOG END globalHandl, 0" lets also disappear the modal dialog correctly from the screen, but
the application does not really quit. Program flow seems to return to the main module, but
despite "IF result = 0 THEN EXIT FUNCTION", I need Windows task manager (Ctrl/Alt/Del) to delete
my application from memory. What do I forget?
------------------
mailto:[email protected][email protected]</A>
www.basicguru.com/zijlema/
But how do you perform this from within, for instance, a CALLBACK FUNCTION?
This is a program flow example:
From within the main module (PBMain) my application calls a procedure (SUB) to build a DDT-style
modal dialog, containing a Quit-button and a Next-button. In case the user clicks the Quit-button, its
CALLBACK FUNCTION performs a modeless dialog: "Do you really want to quit?". Also this dialog has
2 buttons (yes and no). Clicking the yes-button should end the application.
Struggled 2 days with this problem. When the modeless dialog ends (using: DIALOG END CBHNDL)
"DIALOG END globalHandl, 0" lets also disappear the modal dialog correctly from the screen, but
the application does not really quit. Program flow seems to return to the main module, but
despite "IF result = 0 THEN EXIT FUNCTION", I need Windows task manager (Ctrl/Alt/Del) to delete
my application from memory. What do I forget?
------------------
mailto:[email protected][email protected]</A>
www.basicguru.com/zijlema/
Comment