[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'db' (#fcl)

TField.DefaultExpression

Default value for the field

Declaration

Source position: db.pas line 420

published property TField.DefaultExpression: String
  read FDefaultExpression
  write FDefaultExpression;

Description

DefaultValue can be set to a value that should be entered in the field whenever the TDataset.Append or TDataset.Insert methods are executed. It should contain a valid SQL expression that results in the correct type for the field.

This feature is not yet implemented in FPC.

See also

TDataset.Insert

  

Insert a new record at the current position.

TDataset.Append

  

Append a new record to the data

TDataset.CustomConstraint

The latest version of this document can be found at lazarus-ccr.sourceforge.net.