IBindingDecimalSlider.MaxValue

Fore Syntax

MaxValue: Decimal;

Fore.NET Syntax

MaxValue: decimal;

Description

The MaxValue property determines the MAXVAL parameter value in binding string

Comments

The MAXVAL parameter determines slider's maximum value. Maximum value should be greater than minimum value set in the IBindingDecimalSlider.MinValue property.

The MaxValue property value is taken into account if the IBindingDecimalSlider.MaxValueDefined property is set to True. If the MaxValue property value is changed, the IBindingDecimalSlider.MaxValueDefined property is automatically set to True.

Fore Example

This function returns binding string to use value editor as a decimal values slider.

Function CreateDecimalSliderBidning: string;
Var
    BM: IBindingManager;
    Slider: IBindingDecimalSlider;
Begin
    BM := New BindingManager.Create;
    Slider := BM.CreateByUi("DecimalSlider"As IBindingDecimalSlider;
    // Determine that empty values are prohibited
    Slider.Mandatory := True;
    // Determine minimum and maximum values
    Slider.MinValue := -10E-3M;
    Slider.MaxValue := 10E-3M;
    // Determine change step
    Slider.Step_ := 0.15E-3M;
    // Set default value
    Slider.Value := 0;
    // Return binding string
    Return Slider.AsString;
End Function CreateDecimalSliderBidning;

After executing the example the binding string is obtained to use value editor as a decimal values slider.

Fore.NET Example

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

Shared Function CreateDecimalSliderBidning(): string;
Var
    BM: IBindingManager;
    Slider: IBindingDecimalSlider;
Begin
    BM := New BindingManager.Create();
    Slider := BM.CreateByUi("DecimalSlider"As IBindingDecimalSlider;
    // Determine that empty values are prohibited
    Slider.Mandatory := True;
    // Determine minimum and maximum values
    Slider.MinValue := -10E-3M;
    Slider.MaxValue := 10E-3M;
    // Determine change step
    Slider.@Step := 0.15E-3M;
    // Set default value
    Slider.Value := 0;
    // Return binding string
    Return Slider.AsString;
End Function CreateDecimalSliderBidning;

See also:

IBindingDecimalSlider