Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check fields for changes
Message
De
12/07/2005 12:01:56
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
12/07/2005 11:58:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Divers
Thread ID:
01031731
Message ID:
01031738
Vues:
13
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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform