Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining changed values in fields
Message
De
29/08/2003 17:48:52
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
29/08/2003 13:03:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00824599
Message ID:
00824717
Vues:
17
>Hilmar - I looked at that first and I did a test - with a form with 1 field and several command buttons, one of which displays the oldval(field) and another the curval(field) and another one to commit the changes. When I enter a new value in the field the oldval() and curval() always show the same value even though I haven't committed the changes.

Usually, you would not use curval(); only the fieldname by itself (for the current value, in the editing buffer), and oldval("Fieldname").

Also, these functions work best in conjunctions with buffering. Otherwise, the change will be comitted immediately.

Curval() reads the value back from disk, and should only differ from Oldval() if another user made changes, and saved them to disk.

HTH,

Hilmar.
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