Re: Dev/2000 Messages

From: Steve Cosner <stevec_at_zimmer.CSUFresno.EDU>
Date: 1996/09/17
Message-ID: <51mjr2$qkf_at_zimmer.CSUFresno.EDU>#1/1


In article <51m419$7s0_at_helios.man.lublin.pl>, Piotr A. Szczygielski <party_at_apollo.umcs.lublin.pl> wrote:
>Hi all.
>
>I know already how to capture messages like FRM-01234 '....'. But what about
>messages and system alerts that don't have a number like:
>
>Do you want to save changes you have made (Yes, No, Cancel)
>
> On-Message does not react on such a message, On-Error also (well - it's
> not any error anyway) so how to do it ? Or maybe someone knows when such
> alert is shown ? I checked in manuals and found nothing :-((((
> I just want to set a simmillar message but in Polish and have no idea
> how to do it. Have anyone had such a problem ?

These messages are actually alerts. You can create your own alerts with Polish messages. The hard part is anticipating when and where the default alerts are going to pop up, and then issuing your own.

The example you gave: Do you want to save changes... is one that appears when the user clears a block or the entire form, enters or executes a query, or exits the form. My guess here is that in each trigger causing these events (key-ClrFrm, Key-ClrBlk, Key-Exit, Key-ExeQry, etc, etc) you would need to call a procedure that checks the Form or Block status, and if it is 'CHANGED' then issue your own alert, and process a commit or clear_block (or whatever is appropriate) depending on the user's response.

An easier suggestion would be to do a Clear_Form(No_Validate) (or Clear_Block...) at each point where the alert appears, and you will no longer get the default alerts. (Of course, you will be discarding any changes the user may have made but not committed.)

Hope this helps
Steve Cosner Received on Tue Sep 17 1996 - 00:00:00 CEST

Original text of this message