Page 1 of 1

Error by pasting Text

Posted: Mon Feb 07, 2011 5:32 pm
by Bemmann
Hi,
I try to paste some Text from one richviewedit to another.

here ist the code:

Code: Select all

 Clipboard.Clear;

   rve.SelectAll;

   rve.CopyRVF;

   rve2.SelectAll;
   rve2.PasteRVF;
   Clipboard.Clear;
   Application.ProcessMessages;
When the rve2.pastervf; will be executed, it will crash with the error that -1 not an valid index (-1 is over the maximum of the index of a list)

can you help me by this error?

Posted: Mon Feb 07, 2011 6:55 pm
by Sergey Tkachenko
I cannot reproduce this error.
Please send me a sample project reproducing this problem.