Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Don't want to SCATTER
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00145507
Message ID:
00145541
Vues:
30
Thanx John, and everyone else that responded to my question. But.....<g>

It seems CURVAL() and OLDVAL() are always the same? Before a TableUpdate() or a TableRevert() they hold the same value, as well as after. However, when you compare the actual field to either function you get as expected results.
Thanx for the tip on GetFldState as its easier to look for this than walking all fields.
For example: MyField is a logical for brevity

If already edited but not written:

GetFldState(myField) = 2 && edited
Curval(MyField) = .t.
OldVal(MyField) = .t.
eval(MyField) = .f.

After writing with TableUpdate():
GetFldState(MyField) = 2 && Edited
CurVal(MyField) = .f.
OldVal(MyField) = .f.
eval(MyField) = .f.

When can I determine the diference between CurVal() and OldVal()? Thanx.

Randy W Fogg
BDK Technologies
div. of DB³ Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform