Data.DB.TField.GetHasConstraints

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: protected
Source:
Data.DB.pas
Data.DB.hpp
Unit: Data.DB
Parent: TField

Delphi

function GetHasConstraints: Boolean; virtual;

C++

virtual bool __fastcall GetHasConstraints();

Description

Returns whether field values are constrained.

The GetHasConstraints method is used to determine whether the field component imposes custom constraints, imported constraints, or a default expression. GetHasConstraints returns True if the CustomConstraint, DefaultExpression, or ImportedConstraint property is set. Otherwise, HasConstraints returns False, indicating that no constraints on field values are implemented.

GetHasConstraints is the protected getter implementation for the HasConstraints property.

See Also