Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Don't want to SCATTER
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00145507
Message ID:
00145541
Views:
29
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform