guides:programming:programmers_reference_manual:savewarn_property_window

SAVEWARN property (Window)

This property specifies whether the user should be warned that changes have been made, for example, when the user tries to close the form.

It is set to TRUE$ by the system when changes are made to data in data-bound controls. It is reset by the system to FALSE$ after the READ, WRITE, and CLEAR events.

This is a Boolean property.

Index ValueThis should be the name of the control that triggered the SAVEWARN update.
DevelopmentRuntimeIndexedScaledSynthetic
N/AGet/SetYesNoYes

For a data-bound window the system generally checks to see if it should be set at the following points: When a control loses focus, when the current cell is changed in an edit table, and when a window is about to be closed (the control with focus is checked).

The system presents two ways of tracking when SAVEWARN is set by the system:

• By intercepting the WINDOW SYSMSG event and examining the SAVEWARNINFO message

• By using the SAVEWARN method in the SetDebugger stored procedure to see SAVEWARN changes in the System Monitor.

 
//// Example - set the SAVEWARN flag and triggering control//
   
   ModifiedCtrlID = @Window : ".EDL_FORENAME"
   Call Set_Property_Only( @Window, "SAVEWARN", TRUE$, ModifiedCtrlID )
 
 
 

SYSTEM FOCUS property, Common GUI FOCUS property, EDITLINE/EDITBOX MODIFIED property, Common GUI LOSTFOCUS event, EDITTABLE POSCHANGED event, WINDOW CLOSE event, WINDOW SYSMSG event, SetDebugger stored procedure.

  • guides/programming/programmers_reference_manual/savewarn_property_window.txt
  • Last modified: 2023/10/25 10:50
  • by 127.0.0.1