IBindingIntegerEdit.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 IntegerEditBindingInfo(SourceBinding: String);
Var
    BM: IBindingManager;
    Binding: IBindingValue;
    IntegerEditBinding: IBindingIntegerEdit;
Begin
    BM := New BindingManager.Create;
    Binding := BM.CreateByValue(SourceBinding);
    If Binding.UI = "IntegerEdit" Then
        IntegerEditBinding := Binding As IBindingIntegerEdit;
        //Check if the ALLOWEMPTY parameter is present
        If IntegerEditBinding.MandatoryDefined Then
            Debug.WriteLine("ALLOWEMPTY: " + IntegerEditBinding.Mandatory.ToString);
        End If;
        //Check if the CORRECTONEXIT parameter is present
        If IntegerEditBinding.CorrectOnExitDefined Then
            Debug.WriteLine("CORRECTONEXIT: " + IntegerEditBinding.CorrectOnExit.ToString);
        End If;
        //Check if the MINVAL parameter is present
        If IntegerEditBinding.MinValueDefined Then
            Debug.WriteLine("MINVAL: " + IntegerEditBinding.MinValue.ToString);
        End If;
        //Check if the MAXVAL parameter is present
        If IntegerEditBinding.MaxValueDefined Then
            Debug.WriteLine("MAXVAL: " + IntegerEditBinding.MaxValue.ToString);
        End If;
        //Check if the VALUE parameter is present
        If IntegerEditBinding.ValueDefined Then
            Debug.WriteLine("VALUE: " + IntegerEditBinding.Value.ToString);
        End If;
    End If;
End Sub IntegerEditBindingInfo;

This function checks the binding string passed as the SourceBinding input parameter. If the binding string corresponds to the editor of integer values, values of parameters will be displayed in the development environment console.

Fore.NET Example

Imports Prognoz.Platform.Interop.ForeSystem;

Sub IntegerEditBindingInfo(SourceBinding: String);
Var
    BM: BindingManager = New BindingManagerClass();
    Binding: IBindingValue;
    IntegerEditBinding: IBindingIntegerEdit;
Begin
    Binding := BM.CreateByValue(SourceBinding);
    If Binding.UI = "IntegerEdit" Then
        IntegerEditBinding := Binding As IBindingIntegerEdit;
        //Check if the ALLOWEMPTY parameter is present
        If IntegerEditBinding.MandatoryDefined Then
            System.Diagnostics.Debug.WriteLine("CORRECTONEXIT: " + IntegerEditBinding.Mandatory.ToString());
        End If;
        //Check if the CORRECTONEXIT parameter is present
        If IntegerEditBinding.CorrectOnExitDefined Then
            System.Diagnostics.Debug.WriteLine("CORRECTONEXIT: " + IntegerEditBinding.CorrectOnExit.ToString());
        End If;
        //Check if the MINVAL parameter is present
        If IntegerEditBinding.MinValueDefined Then
            System.Diagnostics.Debug.WriteLine("MINVAL: " + IntegerEditBinding.MinValue.ToString());
        End If;
        //Check whether the MAXVAL parameter is present
        If IntegerEditBinding.MaxValueDefined Then
            System.Diagnostics.Debug.WriteLine("MAXVAL: " + IntegerEditBinding.MaxValue.ToString());
        End If;
        //Check whether the VALUE parameter is present
        If IntegerEditBinding.ValueDefined Then
            System.Diagnostics.Debug.WriteLine("VALUE: " + IntegerEditBinding.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 editor of integer values, values of parameters will be displayed in the development environment console.

See also:

IBindingIntegerEdit