Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to make undo and redo action in a table?
Message
 
 
À
15/02/2006 20:05:38
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
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01096632
Message ID:
01096636
Vues:
12
>Hi all.
>I would like to make undo and redo action in a grid to edit a table. This procedure is similar redo and undo button of MS Word. Please give me some ideas to do that.
>Thanks.
>Canh

The simplest idea which comes to mind is to have a textbox with two properties: uCurValue and uPrevValue. In the GotFocus you would do
this.uPrevValue = this.value

and in InteractiveChange you would update uCurValue. Then you can code Redo/Undo buttons.
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