Re: Exiting a form while in Enter-Query mode

From: Jomarlen <jomarlen_at_aol.com>
Date: 1997/12/23
Message-ID: <19971223014101.UAA10826_at_ladder01.news.aol.com>#1/1


>I have an application in which it is possible for the user to exit the form
>while it is in Enter-Query mode. This requires two calls to the EXIT_FORM
>built-in; one to return to Normal mode, and the second to actually exit.
>To accomplish this, I placed the following code in a form-level Key-Exit
>trigger:
>
>IF :SYSTEM.MODE = 'ENTER-QUERY' THEN
> EXIT_FORM;
> EXIT_FORM;
>ELSE
> EXIT_FORM;
>END IF;
>
>This works okay, except that the first EXIT_FORM causes the FRM-40353:
>Query canceled message to be displayed in an alert box, which the user must
>dismiss before the second EXIT_FORM executes.
>
>Is there a more elegant way to accomplish this, without requiring the user
>to dismiss the alert? I know I could use an On-Message trigger to suppress
>the FRM-40353 message, but I don't want to suppress it all the time - only
>prior to exiting the form.
>
>

Hi

If :System.Mode = 'Enter-Query' then
  :SYSTEM.MESSAGE_LEVEL := 10;

     Exit_Form;
     Exit_Form;
Else
     Exit_Form;

End If;

This will supress the message.

John Received on Tue Dec 23 1997 - 00:00:00 CET

Original text of this message