Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to make undo and redo action in a table?
Message
 
 
À
16/02/2006 16:11:48
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
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:
01096895
Vues:
19
>>>>Hi.
>>>>I agree with you about that. My problem is redo action that I can not program.
>>>>If you have any ideas to solve "redo action", please tell me.
>>>>Thanks.
>>>
>>>Well, let's suppose that you want to undo and redo an entire record. Before doing the "undo" (as part of the function that invokes the TableRevert()), you would have to save the modified record values somewhere. scatter name comes to mind, but I am not sure whether you could scatter to a form property.
>>
>>Yes, no problem with using form's property.
>
>I tried the following, which gave me an error message (VFP6/SP5):
>
>
>ThisForm.AddProperty("aNewValues(1)")
>scatter name ThisForm.aNewValues && "Syntax error" at runtime
>
>
>I assume it is necessary to copy to a regular array first.

Because it has to be an object property, not the array.

You can do it like this

scatter name loRecord
thisform.AddProperty('oRecord',loRecord)
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