Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which method to save changes to a field
Message
De
19/01/2008 10:10:59
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
18/01/2008 18:18:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01283155
Message ID:
01283231
Vues:
19
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform