IBindingDecimalSlider.MaxValueDefined

Fore Syntax

MaxValueDefined: Boolean;

Fore.NET Syntax

MaxValueDefined: boolean;

Description

The MaxValueDefined property determines whether binding string contains the MAXVAL parameter.

Comments

Available values:

Fore Example

This procedure checks binding string passed as the SourceBinding input parameter.

Sub DecimalSliderBindingInfo(SourceBinding: String);
Var
    BM: IBindingManager;
    Binding: IBindingValue;
    DecimalSlider: IBindingDecimalSlider;
Begin
    BM := New BindingManager.Create;
    Binding := BM.CreateByValue(SourceBinding);
    If Binding.UI = "DecimalSlider" Then
        DecimalSlider := Binding As IBindingDecimalSlider;
        //Check if the VALUE parameter is present
        If DecimalSlider.ValueDefined Then
            Debug.WriteLine("Default value (VALUE): " + DecimalSlider.Value.ToString);
        End If;
        //Check if the MINVAL parameter is present
        If DecimalSlider.MinValueDefined Then
            Debug.WriteLine("Minimum value (MINVAL): " + DecimalSlider.MinValue.ToString);
        End If;
        //Check if the MAXVAL parameter is present
        If DecimalSlider.MaxValueDefined Then
            Debug.WriteLine("Maximum value (MAXVAL): " + DecimalSlider.MaxValue.ToString);
        End If;
        //Check if the STEP value is present
        If DecimalSlider.StepDefined Then
            Debug.WriteLine("Value change step (STEP): " + DecimalSlider.Step_.ToString);
        End If;
    End If;
End Sub DecimalSliderBindingInfo;

If binding string passed as an input parameter corresponds to value editor as decimal values slider, after executing the example the console window displays the slider parameters.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.ForeSystem;

Shared Sub DecimalSliderBindingInfo(SourceBinding: String);
Var
    BM: IBindingManager;
    Binding: IBindingValue;
    DecimalSlider: IBindingDecimalSlider;
Begin
    BM := New BindingManager.Create();
    Binding := BM.CreateByValue(SourceBinding);
    If Binding.UI = "DecimalSlider" Then
        DecimalSlider := Binding As IBindingDecimalSlider;
        //Check if the VALUE parameter is present
        If DecimalSlider.ValueDefined Then
            System.Diagnostics.Debug.WriteLine("Default value (VALUE): " + DecimalSlider.Value.ToString());
        End If;
        //Check if the MINVAL parameter is present
        If DecimalSlider.MinValueDefined Then
            System.Diagnostics.Debug.WriteLine("Minimum value (MINVAL): " + DecimalSlider.MinValue.ToString());
        End If;
        //Check if the MAXVAL parameter is present
        If DecimalSlider.MaxValueDefined Then
            System.Diagnostics.Debug.WriteLine("Maximum value (MAXVAL): " + DecimalSlider.MaxValue.ToString());
        End If;
        //Check if the STEP value is present
        If DecimalSlider.StepDefined Then
            System.Diagnostics.Debug.WriteLine("Value change step (STEP): " + DecimalSlider.@Step.ToString());
        End If;
    End If;
End Sub DecimalSliderBindingInfo;

See also:

IBindingDecimalSlider