Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Discard Changes while using Scatter and Gather ?
Message
De
01/05/2002 04:01:20
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
01/05/2002 02:11:55
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00651212
Message ID:
00651220
Vues:
16
>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.

Ravi,
I'd suggest buffering as David.
However if you'd go with scatter_gather then you could also support n-levels of undo too :)

-Create a custom form property 'oRec'
-Before starting edit :
scatter name thisform.oRec
thisform.refresh

Save :
gather name thisform.oRec

Discard :
scatter name thisform.oRec

You could use 'thisform.oRec' as if it were alias of your table. ie:

thisform.mytxtbox.controlsource = 'thisform.oRec.First_name'

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform