Hi;
If we create for example a table with rows and columns contents in code, is it possible to enclose the whole operations in only one undo step, in a way the user can go back in only one undo operation?.
Thank you.
Felipe
Hi;
If we create for example a table with rows and columns contents in code, is it possible to enclose the whole operations in only one undo step, in a way the user can go back in only one undo operation?.
Thank you.
Felipe
Felipe,
can you use transactions and rollback?
best wishes,
Wolfgang
Hi Wolfgang;
I am talking of doing a table in a text using WPTools.
Felipe
Hi,
I tested it so:
WPRichText1.StartUndolevel;
WPRichText1.InputString('Step 1'+#13);
WPRichText1.AddTable(3,4,true);
WPRichText1.CPMoveNext;
WPRichText1.InputString('End'+#13);
WPRichText1.EndUndolevel;
WPRichText1.InputString('Step 2'+#13);
StartUndolevel and EndUndolevel are used internally usually. But You can also call the methods from "outside".
Julian