How can I get SelStart?
Posted: Sun Oct 03, 2021 7:09 am
I try to do that this way
uses
... RVLinear;
function SelStart(RVE:TRichViewEdit):integer;
var
SelStart:integer;
SelLength:integer;
int:integer;
begin
RVGetSelection(RVE,SelStart,SelLength,int);
Result:=SelStart;
end;
When it is done with the first line, it works fine. When I go to the second line or to any other line the function returns some very big number.
uses
... RVLinear;
function SelStart(RVE:TRichViewEdit):integer;
var
SelStart:integer;
SelLength:integer;
int:integer;
begin
RVGetSelection(RVE,SelStart,SelLength,int);
Result:=SelStart;
end;
When it is done with the first line, it works fine. When I go to the second line or to any other line the function returns some very big number.