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;
TheLinevariable / field and how should its / its change affectSynEdit1? - German Borisov