Letractively / lazarus-br

Automatically exported from code.google.com/p/lazarus-br
3 stars 0 forks source link

Cut a string from lzRichEdit #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, the problem is the following

I have a Win XP and lazarus FPC 2.6.1

and my lzRichEdit is plain text := true.

When I try cut with copy command and I using UTF8Copy I have a problem.

var sStr, lStr2: string; iPos: integer;

sStr  := lazRichEdit.Text; // lStr := #13#10'Hola ¿Cómo estás? .'
iPos  := lazRichEdit.SelStart; // Cursor position is after of ? (space 
selected) index 18
lStr2 := UTF8Copy(lStr, lPos, 2); // result = 's?'

Please, Can you see this?, very thanks.

Original issue reported on code.google.com by Cristian...@gmail.com on 21 Dec 2012 at 2:13

GoogleCodeExporter commented 9 years ago
Huuu I deleted #13#10 and ready :) thanks.

Original comment by Cristian...@gmail.com on 21 Dec 2012 at 3:05