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

TBCDField.MinValue

Minimum value for the field

Declaration

Source position: db.pas line 787

published property TBCDField.MinValue: Currency
  read FMinValue
  write FMinValue;

Description

MinValue can be set to a value different from zero, then it is the minimum value for the field. When setting the field's value, the value may not be less than MinValue. Any attempt to write a smaller value as the field's content will result in an exception. By default MinValue equals 0, i.e. any floating-point value is allowed.

If MinValue is set, MaxField should also be set, because it will also be checked.

See also

TBCDField.MaxValue

  

Maximum value for the field

TBCDField.CheckRange

  

Check whether a values falls within the allowed range

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