[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
nResult Exported, Numeric, User
------------------------------------------------------------------------------
Contains the exit code of the last activation.
0 undefined
1 IDOK exit with the default OK Button ( or ENTER )
2 IDCANCEL exit with the default Cancel Button ( or ESC )
If you press the ENTER Key, then Windows generates a WM_COMMAND
Message with an IDOK as a Parameter , and if you press the ESC Key,
Windows will send this Message with IDCANCEL as a Parameter.
Assume you have a dialog which has 2 Pushbuttons defined, one OK ( ID 1 )
and one CANCEL ( ID 2 ). Instead of writing an ACTION clause for both
you can do it the good old modal Clipper way and evaluate the return
Code in odlg:nResult _AFTER_ the ACTIVATE DIALOG ... clause.
For an example activate Related Topics: and select DEFINE DIALOG
See Also:
DEFINE DIALOG
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson