lcl: use Text instead of DisplayText in DBRadioGroup. Issue #22920

git-svn-id: trunk@38819 -
This commit is contained in:
blikblum 2012-09-25 03:12:37 +00:00
parent 09a91920b3
commit 2eea52416f

View File

@ -104,8 +104,7 @@ end;
procedure TDBRadioGroup.DataChange(Sender: TObject);
begin
if FDataLink.Field<>nil then
// ToDo: Use Field.Text
Value:=FDataLink.Field.DisplayText
Value:=FDataLink.Field.Text
else
Value:='';
end;
@ -113,8 +112,7 @@ end;
procedure TDBRadioGroup.UpdateData(Sender: TObject);
begin
if FDataLink.Field<>nil then
// ToDo: Use Field.Text
FDataLink.Field.AsString:=Value;
FDataLink.Field.Text:=Value;
end;
function TDBRadioGroup.GetButtonValue(Index: Integer): string;