Sign in Join
FPDoc Onlineexperiment

TCustomGrid.ValidateEntry function

Member of TCustomGridprotectedIn unit Grids

Validates the value for the specified cell.

Declaration

pascal
function ValidateEntry(const ACol: Integer; const ARow: Integer; 
 const OldValue: string; var NewValue: string)
: Boolean; virtual

Arguments

ACol

Column number for the operation.

ARow

Row number for the operation.

OldValue

Value on entry to the method.

NewValue

Value on exit from the method.

Function result

True when validation completes successfully.

Description

ValidateEntry is a Boolean function used to a validate the value for the cell at the specified Col and Row position.

ValidateEntry signals the OnValidateEntry event handler (when assigned) to perform validation for the cell. The return value is True when OnValidateEntry completes successfully, or when the event handler has not been assigned.

See also

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