Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strategies for reverting data
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01278863
Message ID:
01278872
Vues:
20
>>>If you edit a record and then edit it again... then you want to return to the first edit... You cannot call tablerevert... that will restore the original record... You need a backup of the record each time the record is edited.
>>
>>You may want to invent custom revert functionality then. But this may mean relying on the interface....
>
>Yes and that is what I am asking. What is a good strategy to do it? I had some ideas in my original post.

I'm not sure if this is really a good idea, but the first thing that comes to mind is to save the original value in the control's GotFocus event. Then you would be able to revert to the original values.

Another idea is to use SCATTER Name OldRecord MEMO perhaps also in GotFocus event...
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform