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 09:32:49
 
 
To
01/05/2002 02:11:55
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00651212
Message ID:
00651289
Views:
15
>Hi all:
>
>One of my forms uses Scatter and Gather commands to populate fields. I would like to place a commandbutton called "Discard Changes" the clcick event of which should discard any changes a user has made to the currently viewed record.
>
>How should I approach this? TIA.

Well, depending on if you are editing the fields or memvars, and if you are using locking or not. But, basically, if someone 'discards changes' don't do the gather, if you are editing memvars, and scatter again.

If you are editing memvars then you did the scatter to maintain the original values, then do a gather.

Does this make sense?

*******
Although as a few people said, if you are using VFP you really should move to using buffereing. Basically it builds scatter/gather right into the system which you can manage with tableupdate(), tablerevert(), getnextmodified() etc.

BOb
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform