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

TBCDField.MaxValue

Maximum value for the field

Declaration

Source position: db.pas line 786

published property TBCDField.MaxValue: Currency
  read FMaxValue
  write FMaxValue;

Description

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

If MaxValue is set, MinField should also be set, because it will also be checked.

See also

TBCDField.MinValue

  

Minimum 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.