Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Restore to Defaults Button
Message
From
14/02/2008 13:27:58
 
 
To
14/02/2008 13:16:51
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01292707
Message ID:
01292715
Views:
22
>I have a form class and wondered what might be the best approach to put a button on it that would restore values when clicked to whatever they were when the form was first initialized. I can put such a button on an instance of that form and then have a list of things to reset depending on the values, but I would like to make it more generic if possible. Any way that makes sense to use SAVE and RESTORE or something like that? That seems so old school though.

If the items in question are fields of a table, buffering makes this easy. Just use TableRevert().

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform