Error by pasting Text

General TRichView support forum. Please post your questions here
Post Reply
Bemmann
Posts: 1
Joined: Mon Feb 07, 2011 5:27 pm

Error by pasting Text

Post 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?
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

I cannot reproduce this error.
Please send me a sample project reproducing this problem.
Post Reply