GetFldState() will tell that the field is modified, if the user typed anything.
If the user changes the value of a field back to what it was before, it will still be marked as "modified". If this bothers you, you can also compare Field1 with oldval("Field1") (repeat for each field).
>I have a pageframe. In each pages I have to detect when a change has been made in one of the field on that page. I'll then update the "Date of the last change" field.
>
>My question : What would be the best way to detect if a field was changed.
>
>I'm thinking of first gather the values when I get in the page and then gather again when user leaves the page. If a change is detected then I update the date.
>
>Am I on the right track or is there a better way to do this?
>
>Is there a function (native) in VFP to compare values for the result of the two gather? Otherwise what do you suggest as the most efficient way to do this?
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)