IBindingFloatEdit.MaxValueDefined

Fore Syntax

MaxValueDefined: Boolean;

Fore.NET 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.

Fore 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 the VALUE parameter is present
        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.

Fore.NET Example

Imports Prognoz.Platform.Interop.ForeSystem;

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

        //Check if the MAXVAL parameter is present
        If FloatEditBinding.MaxValueDefined Then
            System.Diagnostics.Debug.WriteLine("MAXVAL: " + FloatEditBinding.MaxValue.ToString());
        End If;
        //Check if the PRECISION parameter is present
        If FloatEditBinding.PrecisionDefined Then
            System.Diagnostics.Debug.WriteLine("PRECISION: " + FloatEditBinding.Precision.ToString());
        End If;
        //Check if the STEP value is present
        If FloatEditBinding.StepDefined Then
            System.Diagnostics.Debug.WriteLine("STEP: " + FloatEditBinding.@Step.ToString());
        End If;
        //Check if the VALUE parameter is present
        If FloatEditBinding.ValueDefined Then
            System.Diagnostics.Debug.WriteLine("VALUE: " + FloatEditBinding.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:

IBindingFloatEdit