Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When the record was really changed?
Message
De
26/07/2005 17:32:45
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01035985
Message ID:
01036041
Vues:
15
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>I raised this problem once already, but would like to discuss it again.
>
>If the user changed someting in the form, but then changed his/her mind and removed the change, the GetFldState function would anyway report this record as changed. How do you solve this problem in your applications? Are you triggering all the logic, which is triggered when the user really changed something? Or you're not using GetFldState function (GetNextModified)?
>
>In our case we're using the framework. So, if we want to implement different way of detecting the change, it would be a complicated task.
>
>Thanks in advance.

I am not sure whether it is worthwhile, but it ain't too difficult either. You can compare each field with its previous value (before the user started editing) with the oldval() function.
if field1 = oldval("Field1")
  * No change in this field
endif
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