If any field has been altered, the data shown on the form may not match the data in the data variables. The function to test for this condition is fm_isaltered():
|
fm_isaltered() returns a non-zero value if the form has been edited since being displayed. 0L is returned if the data on the form has not been changed.
The field data is considered altered if the user inserts, overstrikes, or deletes characters in the field, even if the user changes the field data back to the original value before leaving the field. Note that if the user selects the current value of the field from a choice list, the field would also be considered altered; this is because the system automatically copies the current choice list item to the field even if it overwrites the same value.