i have a TjvRichedit control containing a table with some rows/cells filled with text. I want to select some entire rows (eg. rows firstLine and firstLine+1) and copy them to clipboard (or to a stream). I use the code bellow :
SelStart := Perform(EM_LINEINDEX, firstLine, 0);
SelLength:= length(lines[firstLine]) + length(lines[firstLine+1]);
CopyToClipboard;
but it selects from firstLine to firstLine+3 (even selects rows from the next table !). If i reduce the length (eg. SelLength:= 2) it selects two lines! How can i do exactly what i want, please ?