Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Display names <-> field names

edited December 2001 in General
What about an event in the designer with which you can say that a field
shouldn't be as "CustNo" but as "Customer Number". Example:

Event: OnGetFieldDisplayName

procedure TForm1.ppDesigner1GetFieldDisplayName (Pipeline: TppPipeline;
FieldName: string; var DisplayName: string);
begin
if FieldName = 'CustNo' then
DisplayName := 'Customer Number'
else
DisplayName := FieldName; // needless because DisplayName defaults to
FieldName
end;

Helge.

Comments

This discussion has been closed.