Multiple forms in 4.5

From: Paul Young <youngpa_at_statcan.ca>
Date: 1996/02/08
Message-ID: <DMGvHu.63o_at_statcan.ca>#1/1


I'm using Forms 4.5.3.3 and Windows 3.11.

I've created an Enter Query button and in my When-Button-Press trigger I have the following commands:

               CLEAR_FORM(ASK_COMMIT);
               IF (NAME_IN('SYSTEM.FORM_STATUS') = 'CHANGED') THEN
                     RAISE FORM_TRIGGER_FAILURE;
               END IF;

               ENTER_QUERY;

So if the user makes a change to the form and presses the Enter Query button, it will prompt the alert window "Do you want to save your changes? Yes No Cancel" as a result of the CLEAR_FORM(ASK_COMMIT) command.

Should I use CLEAR_FORM(ASK_COMMIT) to accomplish this or should I manually code this by checking for changes to the form, bringing up my own alert window, etc?

I also will be using OPEN_FORM to bring up multiple forms. Will the CLEAR_FORM clause problems in this multiple forms scenario(I think it will, but this is all new to me)?

Any suggestions would be greatly appreciated.

PGY (Opinions expressed are mine and mine alone)

################################################################

# Paul Young #
# youngpa_at_statcan.ca #
# Statistics Canada #
################################################################
Received on Thu Feb 08 1996 - 00:00:00 CET

Original text of this message