MaxValueDefined: Boolean;
MaxValueDefined: boolean;
The MaxValueDefined property determines whether the MAXVAL parameter is present in binding string.
Available values:
True. The binding string contains the MAXVAL parameter. To determine value of this parameter, use the IBindingIntegerSlider.MaxValue property.
False. The binding string does not contain the MAXVAL parameter.
This procedure checks binding string passed as the SourceBinding input parameter.
Sub IntegerSliderBindingInfo(SourceBinding: String);
Var
BM: IBindingManager;
Binding: IBindingValue;
Slider: IBindingIntegerSlider;
Begin
BM := New BindingManager.Create;
Binding := BM.CreateByValue(SourceBinding);
If Binding.UI = "IntegerSlider" Then
Slider := Binding As IBindingIntegerSlider;
//Check if the VALUE parameter is present
If Slider.ValueDefined Then
Debug.WriteLine("Default value (VALUE): " + Slider.Value.ToString);
End If;
//Check if the MINVAL parameter is present
If Slider.MinValueDefined Then
Debug.WriteLine("Minimum value (MINVAL): " + Slider.MinValue.ToString);
End If;
//Check if the MAXVAL parameter is present
If Slider.MaxValueDefined Then
Debug.WriteLine("Maximum value (MAXVAL): " + Slider.MaxValue.ToString);
End If;
//Check if the STEP value is present
If Slider.StepDefined Then
Debug.WriteLine("Value change step (STEP): " + Slider.Step_.ToString);
End If;
End If;
End Sub IntegerSliderBindingInfo;
If binding string, passed as an input parameter, corresponds to value editor presented as integer values slider, after executing the example the console window displays parameters of this slider.
The requirements and result of the Fore.NET example execution match with those in the Fore example.
Imports Prognoz.Platform.Interop.ForeSystem;
…
Shared Sub CreateIntegerSliderBidning(SourceBinding: String);
Var
BM: IBindingManager;
Binding: IBindingValue;
Slider: IBindingIntegerSlider;
Begin
BM := New BindingManager.Create();
Binding := BM.CreateByValue(SourceBinding);
If Binding.UI = "IntegerSlider" Then
Slider := Binding As IBindingIntegerSlider;
//Check if the VALUE parameter is present
If Slider.ValueDefined Then
System.Diagnostics.Debug.WriteLine("Default value (VALUE): " + Slider.Value.ToString());
End If;
//Check if the MINVAL parameter is present
If Slider.MinValueDefined Then
System.Diagnostics.Debug.WriteLine("Minimum value (MINVAL): " + Slider.MinValue.ToString());
End If;
//Check if the MAXVAL parameter is present
If Slider.MaxValueDefined Then
System.Diagnostics.Debug.WriteLine("Maximum value (MAXVAL): " + Slider.MaxValue.ToString());
End If;
//Check if the STEP value is present
If Slider.StepDefined Then
System.Diagnostics.Debug.WriteLine("Value change step (STEP): " + Slider.@Step.ToString());
End If;
End If;
End Sub CreateIntegerSliderBidning;
See also: