>>>
>>>I have a field whose oldval() is A1.
>>>Let say user change it to A2 then A3 then A4 (multiple time before saving the record)
>>>
>>>In the valid event, when user key in A3, how do I know (programatically) the last entered value A2, similary, when user inputs A4, I need to know the last entered value A3.
>>>
>>>Is VFP equiped with something to find out the last entered value?
>>
>>No but you can build such functionality into your control base class by adding a 'Lastvalue' property and populate it at appropriate time.
>
>Thanks!
>Hard to believe VFP does not have this feature... anyway, I trust you :)
It's a rare requirement, but can be easily coded - your controls need to have an array or collection property which will store a new value on each .valid() (or .lostfocus() - your choice) and will be cleared on save. Then you'll have a way of undoing and redoing changes.