IBindingFloatEdit.MaxValueDefined

Syntax

MaxValueDefined: Boolean;

Description

The MaxValueDefined property determines whether the MAXVAL parameter is present in binding string.

Comments

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.

Example

Sub FloatEditBindingInfo(SourceBinding: String);
Var
    BM: IBindingManager;
    Binding: IBindingValue;
    FloatEditBinding: IBindingFloatEdit;
Begin
    BM := New BindingManager.Create;
    Binding := BM.CreateByValue(SourceBinding);
    If Binding.UI = "FloatEdit" Then
        FloatEditBinding := Binding As IBindingFloatEdit;
        //Check if the CORRECTONEXIT parameter is present
         If FloatEditBinding.CorrectOnExitDefined Then
            Debug.WriteLine("CORRECTONEXIT: " + FloatEditBinding.CorrectOnExit.ToString);
         End If;
         //Check if the MINVAL parameter is present
         If FloatEditBinding.MinValueDefined Then
            Debug.WriteLine("MINVAL: " + FloatEditBinding.MinValue.ToString);
         End If;

        //Check if the MAXVAL parameter is present
        If FloatEditBinding.MaxValueDefined Then
            Debug.WriteLine("MAXVAL: " + FloatEditBinding.MaxValue.ToString);
        End If;
        //Check if the PRECISION parameter is present
        If FloatEditBinding.PrecisionDefined Then
            Debug.WriteLine("PRECISION: " + FloatEditBinding.Precision.ToString);
        End If;
        //Check if the STEP value is present
        If FloatEditBinding.StepDefined Then
            Debug.WriteLine("STEP: " + FloatEditBinding.Step_.ToString);
        End If;
        //Check if there is the VALUE parameter
        If FloatEditBinding.ValueDefined Then
            Debug.WriteLine("VALUE: " + FloatEditBinding.Value.ToString);
        End If;
    End If;
End Sub FloatEditBindingInfo;

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:

IBindingFloatEdit