IBindingEditBox.MultiLineDefined

Fore Syntax

MultiLineDefined: Boolean;

Fore.NET Syntax

MultiLineDefined: Boolean;

Description

The MultiLineDefined property determines whether the MULTILINE parameter is present in binding string.

Comments

If the MultiLineDefined property is set to True, the binding string describing the value editor contains the MULTILINE parameter. The value of this parameter is determined by the MultiLine property.

Fore Example

Sub EditBoxBindingInfo(SourceBinding: String);
Var
    BM: IBindingManager;
    Binding: IBindingValue;
    EditBoxBinding: IBindingEditBox;
Begin
    BM := New BindingManager.Create;
    Binding := BM.CreateByValue(SourceBinding);
    If Binding.UI = "EditBox" Then
        EditBoxBinding := Binding As IBindingEditBox;
        //Check if the MAXLENGTH parameter is present
        If EditBoxBinding.MaxLengthDefined Then
            Debug.WriteLine("MAXLENGTH: " + EditBoxBinding.MaxLength.ToString);
        End If;
        //Check if the MULTILINE parameter is present
        If EditBoxBinding.MultiLineDefined Then
            Debug.WriteLine("MULTILINE: " + EditBoxBinding.MultiLine.ToString);
        End If;
        //Check if the READONLY parameter is present
        If EditBoxBinding.ReadOnlyDefined Then
            Debug.WriteLine("READONLY: " + EditBoxBinding.ReadOnly.ToString);
        End If;
        //Check if the VALUE parameter is present
        If EditBoxBinding.ValueDefined Then
            Debug.WriteLine("VALUE: " + EditBoxBinding.Value);
        End If;
    End If;
End Sub EditBoxBindingInfo;

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

Fore.NET Example

Imports Prognoz.Platform.Interop.ForeSystem;

Sub EditBoxBindingInfo(SourceBinding: String);
Var
    BM: BindingManager = New BindingManagerClass();
    Binding: IBindingValue;
    EditBoxBinding: IBindingEditBox;
Begin
    Binding := BM.CreateByValue(SourceBinding);
    If Binding.UI = "EditBox" Then
        EditBoxBinding := Binding As IBindingEditBox;
        //Check if the MAXLENGTH parameter is present
        If EditBoxBinding.MaxLengthDefined Then
            System.Diagnostics.Debug.WriteLine("MAXLENGTH: " + EditBoxBinding.MaxLength.ToString());
        End If;
        //Check if the MULTILINE parameter is present
        If EditBoxBinding.MultiLineDefined Then
            System.Diagnostics.Debug.WriteLine("MULTILINE: " + EditBoxBinding.MultiLine.ToString());
        End If;
        //Check if the READONLY parameter is present
        If EditBoxBinding.ReadOnlyDefined Then
            System.Diagnostics.Debug.WriteLine("READONLY: " + EditBoxBinding.@ReadOnly.ToString());
        End If;
        //Check if the VALUE parameter is present
        If EditBoxBinding.ValueDefined Then
            System.Diagnostics.Debug.WriteLine("VALUE: " + EditBoxBinding.Value);
        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 string value editor, values of the specified parameters will be displayed in the development environment console.

See also:

IBindingEditBox