Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which method to save changes to a field
Message
From
19/01/2008 10:10:59
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
18/01/2008 18:18:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01283155
Message ID:
01283231
Views:
18
>I have a few fields on a stand alone table where I want to save a log of all changes.
>
>Do I write to the log file in the VALID method? And do I know that I need to do so by saving a flag that INTERACTIVECHANGE was called (in case they just tabbed through)?

I would use table triggers, that way, wherever you do the changes, those changes are logged - even changes in interactive commands like BROWSE, etc.

See my article "A basic audit trail", Universal Thread Magazine, May 2003.
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
Reply
Map
View

Click here to load this message in the networking platform