RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TField.HasConstraints Property

Indicates whether field values are constrained.

Pascal
property HasConstraints: Boolean;
C++
__property Boolean HasConstraints;

Read HasConstraints to determine whether the field component imposes custom constraints, imported constraints, or a default expression. HasConstraints is true if the CustomConstraint, DefaultExpression, or ImportedConstraint property is set. Otherwise, HasConstraints is false, indicating that no constraints on field values are implemented. 

Field values can still be limited when HasConstraints is false. For example, an edit mask or OnValidate event handler can constrain field values. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!