Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strategies for reverting data
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01278863
Message ID:
01278872
Views:
19
>>>If you edit a record and then edit it again... then you want to return to the first edit... You cannot call tablerevert... that will restore the original record... You need a backup of the record each time the record is edited.
>>
>>You may want to invent custom revert functionality then. But this may mean relying on the interface....
>
>Yes and that is what I am asking. What is a good strategy to do it? I had some ideas in my original post.

I'm not sure if this is really a good idea, but the first thing that comes to mind is to save the original value in the control's GotFocus event. Then you would be able to revert to the original values.

Another idea is to use SCATTER Name OldRecord MEMO perhaps also in GotFocus event...
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform