Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Discard Changes while using Scatter and Gather ?
Message
From
01/05/2002 03:36:38
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
 
 
To
01/05/2002 03:15:45
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00651212
Message ID:
00651219
Views:
20
>Although you could use buffering as David said, the command you are looking for is SCATTER NAME oMyVariables BLANK. This assumes the control sources of your fields are the properties of an object. Otherwise, for individual variables use SCATTER MEMVAR BLANK. Then refresh.


Hi Cindy:

Thank you for your response. I do have the following code in the Discard Changes button's click event.
scatter memvar memo blank
thisform.refresh()
But what is happening is, each time i clcik Edit, the click event enables the fields on teh form. I then change a value in teh field and the moment that field looses focus, it appears to be written to the table. Thefore, if I make a change and then move out of the field and click Discard Changes - it has no effect. Interestingly, clciking Discard Changes while still in the filed after the change has been made also has no effect.
- Ravi

True greatness consists in being great in little things.
- Charles Simmons
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform