mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-29 15:27:27 +01:00
* Implemented GetDisplayName for fielddef
git-svn-id: trunk@14204 -
This commit is contained in:
parent
59204b21d5
commit
bf39a852b4
@ -74,6 +74,7 @@ Type
|
|||||||
protected
|
protected
|
||||||
function GetSectionName: String; override;
|
function GetSectionName: String; override;
|
||||||
procedure SetSectionName(const Value: String); override;
|
procedure SetSectionName(const Value: String); override;
|
||||||
|
function GetDisplayName: string; override;
|
||||||
Public
|
Public
|
||||||
Constructor Create(ACollection : TCollection); override;
|
Constructor Create(ACollection : TCollection); override;
|
||||||
Function FieldDefs : TDDFieldDefs;
|
Function FieldDefs : TDDFieldDefs;
|
||||||
@ -1013,6 +1014,14 @@ begin
|
|||||||
FFieldName:=Value;
|
FFieldName:=Value;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TDDFieldDef.GetDisplayName: string;
|
||||||
|
begin
|
||||||
|
If (FieldName<>'') then
|
||||||
|
Result:=FieldName
|
||||||
|
else
|
||||||
|
Result:=inherited GetDisplayName;
|
||||||
|
end;
|
||||||
|
|
||||||
constructor TDDFieldDef.Create(ACollection: TCollection);
|
constructor TDDFieldDef.Create(ACollection: TCollection);
|
||||||
begin
|
begin
|
||||||
Inherited;
|
Inherited;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user