How Right to cancel the add table row data

General TRichView support forum. Please post your questions here
Post Reply
mohonko
Posts: 13
Joined: Fri Mar 23, 2018 9:17 am

How Right to cancel the add table row data

Post by mohonko »

Hello! Your advice, please. On the form, created a button that adds a row to the table and inserts a digit in the first column. If I create an " Undo group "at the beginning of the row creation and finish its creation after adding a digit, then I try to cancel the"Access violation" error. At the beginning of the row is added, write
"rve.BeginUndoCustomGroup('Add Table Main Line');
rve.Set Undo Group Mode (True);"
then there are actions that add a string and a number, and then give the command "rve.Set Undo Group Mode(False);"
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: How Right to cancel the add table row data

Post by Sergey Tkachenko »

What's your code exactly? Can you post it here?

Unfortunately, the current version of grouping undo operations does not allow grouping operations inside cells (text insertion) and operations outside cells (row addition).
But AV must not happen.

I have an idea how to improve undo grouping, I'll see if I can implement it in the next update.
Post Reply