Does anyone have a good suggestion on how to do Undos? I have an application where labels are clicked and other labels are enabled, disabled, made visable, text set in a label and information added to a SQLite database. Any suggestions on how to save this information so I can easily undo the actions.
My initial thoughts are to create a table when the page is displayed and when ever a label is clicked, store all the undo information in a function.
Table.Insert(tbUndo, Table.Count(tbUndo)+1, function ()=Label.SetVisible(); Label.SetEnable(); SQLite.Query();
And then when Ctrl+Z is pressed if there are items in the table then I can execute the last item and remove it from the table.
Tigg

