Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Discard Changes while using Scatter and Gather ?
Message
From
02/05/2002 12:05:46
 
 
To
01/05/2002 10:31:20
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00651212
Message ID:
00651953
Views:
16
>>
>>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.
>>
>In the discard button I only have Scatter Memvar Memo. But what happens is the moment i change a field value/text and move to another field, it gets updated and clicking discard has no effect.
>
>Thanks for your input Bob.

Ok,

It sounds like your are editing the fields... here is the general sequence.

1. User Presses EDIT button
2. You lock the record and scatter to memvars and set form to edit mode
3. User Makes EDITs
4. User Presses SAVE, you unlock the record or
5. User Presses CANCEL, you GATHER the stored values back, then unlock

So, basically your scatter is saving the original values, when the user CANCELs, then you gather the original values back to the fields.

BOb
Previous
Reply
Map
View

Click here to load this message in the networking platform