General information
Category:
Coding, syntax & commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only