Adds the specified Value to the constraints list
Namespace: IECSInterfaces
Delphi |
public |
Parameters
Value
Type: IIEValue
Defined types allow you to define four types of Constraints, or enumerations: atom, string, integer, and float. Constraints limit the allowable values for each of the BaseTypes. If a value is assigned to a variable which is of the defined type, it is type-checked. First, the value must be of one of the allowed BaseTypes. Next, if the value is a integer or float and the defined type is RangeLimited, the value must fall within the allowed range. Finally, if the value has a constraint, it must be contained within its respective constraint list (ConstraintAtom, ConstraintFloat, ConstraintInteger, or ConstraintString). Note that values of a different type are not constrained, e.g., a string value ignores atom constraints. Note that if Constraints defines a constraint and the equivalent constraint list is empty, it is the same as not allowing that type of value. |
Reference |