Sign in Join
FPDoc Onlineexperiment

TOnBeforeSetupField procedure type

In unit fpObserver

Event type for formatting field values before display

Declaration

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

Arguments

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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.