Skip to content

TOnBeforeSetupField

Event type for formatting field values before display

Declaration

Source position: fpobserver.pp line 169

type
  TOnBeforeSetupField = procedure(AObject: TObject; 
                                const AFieldName: string; 
                                var AValue: string) of object;

Arguments

Name Description
AObject Object containing the field being formatted
AFieldName Name of the field being processed
AValue Value to be formatted for display

Description

The TOnBeforeSetupField procedure type defines the signature for events that allow formatting of field values before they are written to list view captions or items. This event provides access to the object, field name, and value that can be modified.

This event is meant to provide the possibility to apply custom formatting for dates, numbers, or other data types.

See also

Name Description
TListItemMediator.OnBeforeSetupField Event for formatting field values before display