The CLOSE CancelFlag parameter (OpenInsight Specific)
At 07 SEP 2001 06:53:50AM Oystein Reigem wrote:
What's that CLOSE CancelFlag parameter for? The explanation in the docs doesn't make much sense to me.
What I thought I could use it for was to distinguish between an OK button's CLOSE and a Cancel button's CLOSE. I have this collector with OK and Cancel buttons, where I let the OK button do a
Send_Event( @Window, "CLOSE", true$ )and the Cancel button a
Send_Event( @Window, "CLOSE", false$ )But in the CLOSE handler the CancelFlag is always false.
Trivial mistake? Known problem?
- Oystein -
At 07 SEP 2001 08:46AM Don Miller - C3 Inc. wrote:
Oystein ..
I noticed the same thing a while ago. Basically, I have different handlers for the OK, Cancel buttons. The OK button sets the data for the End_Dialog to contain information. The Cancel button returns NULL. The parent form checks for this condition and updates or not as the case may be. About the only thing that can cause problems is the case where the operator is able to terminate the dialog box with a non-button control. In this case, the return value is always NULL, I hope.
Don Miller
C3 Inc.