I have edith, I enter the number there. I made this code, but when I enter it, an error appears, I understand that this is because of StringReplache because I use it twice, how to do everything in one code to remove all spaces and change the comma to a period
procedure TForm26.btn1Click(Sender: TObject); var t1: string; begin t1 := StringReplace(edt2.Text, ',', '.', [rfReplaceAll]); t1 := Trim(edt2.Text); t1 := StringReplace(t1, ' ', '', [rfReplaceAll]); qry1.SQL.Clear; qry1.SQL.Add('INSERT INTO Facial(summa) VALUES('+#39+t1+#39+')'); qry1.ExecSQL; end; when I enter a number with a comma, I get an error message
