......................................
with RichEdit1 do
begin
{ begin the search after the current selection if there is one }
{ otherwise, begin at the start of the text }
if SelLength <> 0 then
StartPos := SelStart + SelLength
else
StartPos := 0;
{ ToEnd is the length from StartPos to the end of the text in the rich edit control }
ToEnd := Length(Text) - StartPos;
FoundAt := FindText(FindDialog1.FindText, StartPos, ToEnd, [stMatchCase]);
if FoundAt <> -1 then
begin
SetFocus;
SelStart := FoundAt;
SelLength := Length(FindDialog1.FindText);
.................................
ситуация следующая нужна подсказка мы находим необходимый текст на этом этапе все ок , но теперь необходимо следующее:
пример строка — 18.00.01 pppppppppp rrrrrr
dffdf dfdfdfdf :Error: поиск идет по :Error: а теперь хочется скопировать весь текст
который содержится в строке + верхнюю позицию . Подскажите плиззззззз как можно это сделать ??? ( все действие происходит
в *.txt заранее спасибо