Catch the description field in the View (Firebird 2.5)

The official tester's forum for ZeosLib 7.1. Ask for help, post proposals or solutions.
Post Reply
fredutsch
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 07.11.2013, 12:08

Catch the description field in the View (Firebird 2.5)

Post by fredutsch »

How do I add a property (DisplayLabel) in the DataSet component Zeos. This property must contain a description of the field in the View.
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1962
Joined: 17.01.2011, 14:17

Re: Catch the description field in the View (Firebird 2.5)

Post by marsupilami »

Hello fredutsch,

I am not sure what you mean. But DisplayLabel usually is a property of a TField descandant. If you have persistent fields, you can edit this property in Delphi. If you have dynamically created fields, you can edit the value like this:

Code: Select all

procedure TSomeForm.SomeQueryAfterOpen(Sender: TObject);
begin
  SomeQuery.FieldByName('SOMECOLUMN').DisplayLabel := 'MyLabel';
end;
This will display the label MyLabel on the column SOMECOLUMN in any TDbGrid.

Best regards,

Jan
Post Reply