IBindingTreeCombo.NodesDefined

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.

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

See also:

IBindingTreeCombo