Sign in Join
FPDoc Onlineexperiment

TField.OnValidate property

Member of TFieldpublishedIn unit DB

Event to validate the value of a field before it is written to the data buffer.

Declaration

pascal
property OnValidate: TFieldNotifyEvent read FOnValidate write FOnValidate;

Description

OnValidate is called prior to writing a new field value to the dataset's data buffer. It can be used to prevent writing the new value to the buffer by raising an exception in the event handler. Note that this event handler is always called, irrespective of the way the value of the field is set.

See also

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