mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 00:19:26 +02:00
lcl: use TField.Text in TDBComboBox (Delphi compatible). Fix #19166
git-svn-id: trunk@30297 -
This commit is contained in:
parent
e3864724ca
commit
5693e4c3da
@ -28,13 +28,15 @@
|
|||||||
procedure TDBComboBox.UpdateData(Sender: TObject);
|
procedure TDBComboBox.UpdateData(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
FDataLink.Field.Text := Text;
|
FDataLink.Field.Text := Text;
|
||||||
FDataLink.Field.AsString := Text;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TDBComboBox.UpdateText;
|
procedure TDBComboBox.UpdateText;
|
||||||
|
var
|
||||||
|
DataLinkField: TField;
|
||||||
begin
|
begin
|
||||||
if Assigned(FDataLink.Field ) then
|
DataLinkField := FDataLink.Field;
|
||||||
Text := FDataLink.Field.AsString
|
if Assigned(DataLinkField) then
|
||||||
|
Text := DataLinkField.Text
|
||||||
else
|
else
|
||||||
inherited;
|
inherited;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user