Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check fields for changes
Message
From
12/07/2005 12:01:56
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
12/07/2005 11:58:50
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01031731
Message ID:
01031738
Views:
12
This message has been marked as a message which has helped to the initial question of the thread.
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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform