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 DecimalEditBindingInfo(SourceBinding: String);
Var
BM: IBindingManager;
Binding: IBindingValue;
DecimalEditBinding: IBindingDecimalEdit;
Begin
BM := New BindingManager.Create;
Binding := BM.CreateByValue(SourceBinding);
If Binding.UI = "DecimalEdit" Then
DecimalEditBinding := Binding As IBindingDecimalEdit;
//Check if the CORRECTONEXIT parameter is present
If DecimalEditBinding.CorrectOnExitDefined Then
Debug.WriteLine("CORRECTONEXIT: " + DecimalEditBinding.CorrectOnExit.ToString);
End If;
//Check if the MINVAL parameter is present
If DecimalEditBinding.MinValueDefined Then
Debug.WriteLine("MINVAL: " + DecimalEditBinding.MinValue.ToString);
End If;
//Check if the MAXVAL parameter is present
If DecimalEditBinding.MaxValueDefined Then
Debug.WriteLine("MAXVAL: " + DecimalEditBinding.MaxValue.ToString);
End If;
//Check if the PRECISION parameter is present
If DecimalEditBinding.PrecisionDefined Then
Debug.WriteLine("PRECISION: " + DecimalEditBinding.Precision.ToString);
End If;
//Check if the STEP value is present
If DecimalEditBinding.StepDefined Then
Debug.WriteLine("STEP: " + DecimalEditBinding.Step_.ToString);
End If;
//Check if there is the VALUE parameter
If DecimalEditBinding.ValueDefined Then
Debug.WriteLine("VALUE: " + DecimalEditBinding.Value.ToString);
End If;
End If;
End Sub DecimalEditBindingInfo;
This function checks the binding string passed as the SourceBinding input parameter. If the binding string corresponds to the high precision real value editor, values of parameters will be displayed in the development environment console.
See also: