Language Reference Guide : 4. System Classes : FieldObject Class : HasDataChanged Attribute
 
Share this page                  
HasDataChanged Attribute
Data Type: smallint
4GL Access: RW
The HasDataChanged attribute indicates whether the end user has made any interactive changes to the data associated with the field.
The value is TRUE if the end user edited the field and FALSE if the user has not. An edit consists of any user typing in entry fields or any user click on most other types of fields.
This attribute is automatically reset to FALSE every time the SetToDefault method clears the field or any time data is put into the field through a 4GL statement. You can set this value to TRUE or FALSE if you want to use it for your own purposes (such as keeping track of changes you need to record in the database).
The default is FALSE when the form is initialized.