IBindingTreeCombo.NodesDefined

Fore Syntax

NodesDefined: Boolean;

Fore.NET Syntax

NodesDefined: Boolean;

Description

The NodesDefined property determines whether the NODES parameter is present in binding string.

Comments

If the NodesDefined property is set to True, the binding string describing the value editor contains the NODES parameter. This parameter is determined by the Nodes property.

Fore Example

Sub TreeComboBindingInfo(SourceBinding: String);
Var
    BM: IBindingManager;
    Binding: IBindingValue;
    TreeComboBinding: IBindingTreeCombo;
Begin
    BM := New BindingManager.Create;
    Binding := BM.CreateByValue(SourceBinding);
    If Binding.UI = "TreeCombo" Then
        TreeComboBinding := Binding As IBindingTreeCombo;
        //Check if the NODES parameter is present
        If TreeComboBinding.NodesDefined Then
            Debug.WriteLine("NODES: " + TreeComboBinding.Nodes);
        End If;
        //Check if the SEPARATORS parameter is present
        If TreeComboBinding.SeparatorsDefined Then
            Debug.WriteLine("SEPARATORS: " + TreeComboBinding.Separators);
        End If;
        //Check if the VALUE parameter is present
        If TreeComboBinding.ValueDefined Then
            Debug.WriteLine("VALUE: " + TreeComboBinding.Value);
        End If;
    End If;
End Sub TreeComboBindingInfo;

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

Fore.NET Example

Imports Prognoz.Platform.Interop.ForeSystem;

Sub TreeComboBindingInfo(SourceBinding: String);
Var
    BM: BindingManager = New BindingManagerClass();
    Binding: IBindingValue;
    TreeComboBinding: IBindingTreeCombo;
Begin
    Binding := BM.CreateByValue(SourceBinding);
    If Binding.UI = "TreeCombo" Then
        TreeComboBinding := Binding As IBindingTreeCombo;
        //Check if the NODES parameter is present
        If TreeComboBinding.NodesDefined Then
            System.Diagnostics.Debug.WriteLine("NODES: " + TreeComboBinding.Nodes);
        End If;
        //Check if the SEPARATORS parameter is present
        If TreeComboBinding.SeparatorsDefined Then
            System.Diagnostics.Debug.WriteLine("SEPARATORS: " + TreeComboBinding.Separators);
        End If;
        //Check if the VALUE parameter is present
        If TreeComboBinding.ValueDefined Then
            System.Diagnostics.Debug.WriteLine("VALUE: " + TreeComboBinding.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 editor as a combo tree, values of the specified parameters will be displayed in the development environment console.

See also:

IBindingTreeCombo