Try OpenEdge Now
skip to main content
ABL Reference
Handle Attributes and Methods Reference : MODIFIED attribute

MODIFIED attribute

Indicates whether the value of the SCREEN-VALUE attribute for the widget has changed.
Data type: LOGICAL
Access: Readable/Writeable
Applies to: BROWSE widget (browse and column), COMBO-BOX widget, EDITOR widget, FILL-IN widget, RADIO-SET widget, SELECTION-LIST widget, SLIDER widget, TEXT widget, TOGGLE-BOX widget
For browse columns, this attribute is readable only.
For all widgets, the MODIFIED attribute is set to TRUE when the SCREEN-VALUE attribute for the widget is changed, whether or not the field is enabled. For all widgets except the editor widget, the MODIFIED attribute is set to TRUE if the SCREEN-VALUE attribute for the widget is changed using an ABL statement, such as assignment or DISPLAY. DISPLAY sets MODIFIED to TRUE only when the field is enabled. You can then reset the attribute to FALSE for each widget that can receive input focus or otherwise change value after it is initially displayed.
For editors, the successful execution of either the SAVE-FILE( ) or the READ-FILE( ) methods sets the MODIFIED attribute to FALSE.
For browses, if any browse cell changes, the AVM sets MODIFIED to TRUE. The application can reset MODIFIED to FALSE as necessary. If the query associated with a browse is reopened, the AVM resets MODIFIED to FALSE.
If the widget is not already realized and you reference its MODIFIED attribute, the AVM realizes the widget.
You can use the SENSITIVE attribute to reset the MODIFIED attribute. For example, when the screen-value of a fill-in field is changed, MODIFIED is set to TRUE. If you then set SENSITIVE to FALSE and then to TRUE, you enable the fill-in for further input and the MODIFIED attribute is reset to FALSE.