Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parent and Child TableRevert?
Message
From
03/07/2001 11:02:42
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00526287
Message ID:
00526298
Views:
18
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform