Consultor Eletrônico



Kbase 35713: How to check if the fill-in value has changed in the LEAVE trigger?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/10/1998
Solution ID: P5713

GOAL:

How to check if the fill-in value has changed in the LEAVE trigger?

FIX:

To check the current value of the fill-in against the original contents of the fill-in, use the ENTERED function as in:


MESSAGE FILL-IN-1 ENTERED VIEW-AS ALERT-BOX INFO BUTTONS OK.

To check the current value of the fill-in against the most recent contents of the fill-in (not necessarily the original contents as in when the user changes the contents of fill-in several times) do the following:

- Define a character cTempVar variable in the definitions section.
- On ENTRY of the fill-in, assign the value of the fill-in to this variable.
- On LEAVE of the fill-in check if the variable is different from the current screen-value of the fill-in as in:


MESSAGE FILL-IN-1:SCREEN-VALUE <> cTempVar VIEW-AS ALERT-BOX INFO BUTTONS OK.