procedure TForm1.DBEdit1KeyPress(Sender: TObject; var Key: Char); begin if key = '.' then key := ','; end;