Steve -

You can define a variable, fButton, prior to opening the form;

SET VAR fButton INTEGER = 0
EDIT USING formanme WHERE yada yada

Then on any other methods you give the user to exit the form, you add the
following line to your EEP:

SET VAR fButton = 1  (or anything other than 0)

If the user clicks the "X" to exit, fButton remains set at 0, otherwise it
's set to a different number, depending on your program.  Then in your
calling program, you can check the value of fButton after the EDIT USING
statement.

IF fButton = 0 THEN
 ...
ELSE
..
ENDIF

Let me know if you need a more detailed explaination.

Sami

-----------------------------------------------------------------
Sami Aaron
Software Management Specialists
19312 W 63rd Terr
Shawnee KS  66218
mailto:[EMAIL PROTECTED]
913-915-1971

----- Original Message ----- 
From: J. Stephen Wills
To: RBASE-L Mailing List
Sent: Tuesday, November 18, 2003 1:02 PM
Subject: [RBASE-L] - Trapping Form Events ...


Is it possible in RBWINv6.5++ to trap at the form-level whether or not the
form was closed by clicking on the [X] button?

I am trapping LASTKEY at the field-level, but, in this situation, a logon, I
also would like to trap that [X] and handle like a field-level [ESC].


Thanks,
Steve in Memphis

Reply via email to