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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only