Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parent and Child TableRevert?
Message
De
03/07/2001 11:02:42
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
Divers
Thread ID:
00526287
Message ID:
00526298
Vues:
19
>Hi
>I have a form with some textboxes ( bound to a parent table ) and a grid ( bound to a child ). I would like to give the possibility to edit the whole thing and/or to add records throught the grid. The thing is i would also like to provide an undo feature, without having to delete the records when clicking on undo. I think this can be done probably using tablerevert() and/or tableupdate(), but i just can't find the right way to implement this.
>
>Thanks,
>Jaime

You need several TableUpdate() / TableRevert() commands, one for each table.

I assume you want to be able to save / undo changes in several records at once, in the child table. In this case, you have to enable table-buffering. For optimistic buffering, this is option 5:
CursorSetProp("Buffering", 5, "MyChildTable")
Regards, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform