MaxValueDefined: Boolean;
The MaxValueDefined property determines whether the MAXVAL parameter is present in binding string.
If the MaxValueDefined property is set to True, the binding string describing value editor will contain the MAXVAL parameter. The parameter value is determined by the MaxValue property.
Sub IntegerEditBindingInfo(SourceBinding: String);
Var
BM: IBindingManager;
Binding: IBindingValue;
IntegerEditBinding: IBindingIntegerEdit;
Begin
BM := New BindingManager.Create;
Binding := BM.CreateByValue(SourceBinding);
If Binding.UI = "IntegerEdit" Then
IntegerEditBinding := Binding As IBindingIntegerEdit;
//Check if the ALLOWEMPTY parameter is present
If IntegerEditBinding.MandatoryDefined Then
Debug.WriteLine("ALLOWEMPTY: " + IntegerEditBinding.Mandatory.ToString);
End If;
//Check if the CORRECTONEXIT parameter is present
If IntegerEditBinding.CorrectOnExitDefined Then
Debug.WriteLine("CORRECTONEXIT: " + IntegerEditBinding.CorrectOnExit.ToString);
End If;
//Check if the MINVAL parameter is present
If IntegerEditBinding.MinValueDefined Then
Debug.WriteLine("MINVAL: " + IntegerEditBinding.MinValue.ToString);
End If;
//Check if the MAXVAL parameter is present
If IntegerEditBinding.MaxValueDefined Then
Debug.WriteLine("MAXVAL: " + IntegerEditBinding.MaxValue.ToString);
End If;
//Check if there is the VALUE parameter
If IntegerEditBinding.ValueDefined Then
Debug.WriteLine("VALUE: " + IntegerEditBinding.Value.ToString);
End If;
End If;
End Sub IntegerEditBindingInfo;
This function checks the binding string passed as the SourceBinding input parameter. If the binding string corresponds to the editor of integer values, values of parameters will be displayed in the development environment console.
See also: