Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding last entered value in valid event, how to?
Message
From
07/06/2008 18:58:30
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
07/06/2008 01:53:15
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01322235
Message ID:
01322342
Views:
14
>>>
>>>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.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform