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