Mandatory: Boolean;
The Mandatory property controls the ALLOWEMPTY parameter value in binding string.
The ALLOWEMPTY parameter determines whether empty value can be set in the editor. If parameter is set to True, empty value can be set in the editor, otherwise - not. The Mandatory property works as follows:
If the Mandatory property is set to True, the editor is mandatory to fill in. The ALLOWEMPTY parameter will be set to False.
If the Mandatory property is set to False, the editor is optional to fill in. The ALLOWEMPTY parameter will be set to True.
The Mandatory property is available, if the MandatoryDefined property is set to True. If the Mandatory property is changed, the MandatoryDefined property is automatically set to True.
The ALLOWEMPTY parameter use is available for the following editors:
IBindingIntegerEdit. Integer values editor.
IBindingFloatEdit. Real values editor.
The example of use is given in description of the IBindingIntegerEdit.MaxValue property.
See also: