Page 1 of 1

SelectionExists within a table cell

Posted: Tue Jun 26, 2012 11:42 am
by csterg
Hello,
I want to test (in a generic way) if some selected text exists and copy it to clipboard, e.g.
if RVE.SelectionExists then RVE.Copy;

The above code does not work if the selection is within a table. What is the best way to fix that?
Thanks,
Costas

P.S. I know it works if i use the RVData of the table, but how do i get that in a generic way?

Posted: Tue Jun 26, 2012 2:13 pm
by Sergey Tkachenko
This code must work even if a selection is in a table cell.
If not, please give me step-by-step instructions how to reproduce.

Posted: Tue Jun 26, 2012 2:36 pm
by csterg
Are you sure? I don't do anything special, just a table in a document. Using RV12.5.2
Costas

Posted: Tue Jun 26, 2012 8:35 pm
by Sergey Tkachenko
Yes, I am sure. But may be that specific version of TRichView had a bug.

Posted: Wed Jun 27, 2012 6:57 am
by csterg
I will soon upgrade to the latest, so i will get back to check it,
Thanks