You can use field(index) to get the field name, and evaluate(...) to get its contents.
If you use buffering, you don't need to store the original information anywhere else; VFP does it automatically. Use the oldval() function to check for the value prior to the most recent changes.
>Hi All,
>
>I need to check 30+ fields for changes and for each field changed, I need to put the date changed into a corresponding field.
>
>I thought about putting the old version of each field needed into a Name object on the form, then when they are saving the record to scatter the fields to a different Name object and compare them. But, I think, that is a lot of repetitive code.
>
>Anyone have a better way of doing it?
>
>TIA
>Beth
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)