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

# TField.HasConstraints

Does the field have any constraints defined

## Declaration

Source position: db.pas line 450

`published property TField.HasConstraints : Boolean read FHasConstraints;`

## Description

HasConstraints will contain True if one of the CustomConstraint or ImportedConstraint properties is set to a non-empty value.

## See also

CustomConstraint |  | Custom constraint for the field's value
ImportedConstraint |  | Constraint for the field value on the level of the underlying database

Documentation generated on: May 14 2021