Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there an easy way to reset values on a form?
Message
From
29/01/2002 10:16:53
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
29/01/2002 10:07:02
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00612159
Message ID:
00612167
Views:
23
>Hello all and sorry about the newbie question but I've found this to be the best place for answers.
>
>I've given the user the option of leaving a form when a duplicate is found. However, if he leaves (thisform.release) and returns, the values previously entered are still shown. Is there an easy way to reset these values or do I have to manually clear the fields?
>
>Also, does anyone have a link to a good online reference on foxpro (besides microsoft)?
>
>Thanks in advance,
>Sunshine

Sunshine,

If what you want to do is undo changes, you should use buffering. I recommend using mode 3 (optimistic row) or 5 (optimistic table).

Details in the following help topics:
CursorSetProp() && Enable buffering for a table
TableUpdate() && Confirm changes
TableRevert() && Undo changes
HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform