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
#1
♥ 0
🔗
5k Views
3 users
read 1 min
Felipe,
can you use transactions and rollback?
best wishes,
Wolfgang
#2
♥ 0
🔗
Hi Wolfgang;
I am talking of doing a table in a text using WPTools.
Felipe
#3
♥ 0
🔗
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
#4
♥ 0
🔗
This category is archived. No new posts are possible.