Help, trying to make the transition from the ListView line to a line in SynEdit, an error was found in the program that shows which SynEdit line it is on, when you click on an error, you need to make it go to the line in the SynEdit specified in the error That's what happened, but transition does not work

procedure TForm1.ListView1SelectItem(Sender: TObject; Item: TListItem; Selected: Boolean); begin with TRegExpr.Create do try Expression := '\[line (\d+)\]'; // Π˜Ρ‰Π΅ΠΌ Π½ΠΎΠΌΠ΅Ρ€ строки Π² сообщСнии ΠΎΠ± ошибкС if Exec(Item.Caption) then begin TheLine := StrToInt(Match[1]); // Π·Π°ΠΏΠΎΠΌΠΈΠ½Π°Π΅ΠΌ Π½Π°ΠΉΠ΄Π΅Π½Π½Ρ‹ΠΉ Π½ΠΎΠΌΠ΅Ρ€ строки с ошибкой SynEdit1.Invalidate; // ΠΈ заставляСм SynEdit ΠΏΠ΅Ρ€Π΅Ρ€ΠΈΡΠΎΠ²Π°Ρ‚ΡŒΡΡ. ΠŸΡ€ΠΈ этом измСнится Ρ†Π²Π΅Ρ‚ строки end; finally`Π²Π²Π΅Π΄ΠΈΡ‚Π΅ сюда ΠΊΠΎΠ΄` Free; end; 
  • What is the TheLine variable / field and how should its / its change affect SynEdit1 ? - German Borisov
  • It seems like in the future, it is needed, for drawing this line in red - OLGA
  • Probably no one will help here either ( - OLGA

0