SeeAlso Properties Methods Events Example
Unit
MySQLDataset
Applies to
TMySQLDataset TMySQLTable and TMySQLQuery components
Declaration
type
TMySQLFieldValue = procedure(Dataset: TMySQLDatasetBase; AField: string; AIndex: int64; var AValue: string) of object;
property OnDefaultValue: TMySQLFieldValue;
Description
This event fires each time a new record is about to be inserted into the dataset and allows you to specify default values for the fields of the dataset's column. AField is the MySQL column/fieldname, AIndex is the column/field's index, i.e. 0 = first column, 1 = second, .. etc and AValue is the default value the dataset already has for the column which you may override to your own.