Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Undo Function Class
Message
From
07/07/1999 11:02:11
 
 
To
06/07/1999 23:59:49
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00238109
Message ID:
00238305
Views:
12
Here are a couple of ideas.

If you want to just undo changes to an entire record you can use tablebuffering and then issue a TableRevert() to undo changes to the record or table.

Another option would be to add a property to all your base classes that can be used for data entry\editing. Use this property to store the original value of the control (you could do this in the GotFocus event). You can then have an Undo method in each control that sets it's value back to the value stored in that property.

Another option may be to keep a log of changes as they are being made. You could capture the control and original value. Then you could have a method that starts with the most recent change and restores them on a last in first out basis.

HTH.

>I am using VFP6.0 for my project.
>In that I want to write a Undo Function as a Class. So, that
>I can call it anywhere in my project.
>How should I write this particular class ? ? ?
>
>Any idea ? ? /
>
>Thanx in advance
>
>Amol.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform