IBindingComboBox.ItemsDefined

Syntax

ItemsDefined: Boolean;

Description

The ItemsDefined property determines whether the ITEMS parameter is present in binding string.

Comments

If the ItemsDefined property is set to True, the binding string describing value editor will contain the ITEMS parameter. The parameter value is determined by the Items property.

Example

Sub ComboBoxBindingInfo(SourceBinding: String);
Var
    BM: IBindingManager;
    Binding: IBindingValue;
    ComboBoxBinding: IBindingComboBox;
Begin
    BM := New BindingManager.Create;
    Binding := BM.CreateByValue(SourceBinding);
    If Binding.UI = "ComboBox" Then
        ComboBoxBinding := Binding As IBindingComboBox;
        //Check if the ITEMS parameter is present
        If ComboBoxBinding.ItemsDefined Then
            Debug.WriteLine("ITEMS: " + ComboBoxBinding.Items);
        End If;
        //Check if the LISTMODE parameter is present
        If ComboBoxBinding.ListModeDefined Then
            Debug.WriteLine("LISTMODE: " + ComboBoxBinding.ListMode.ToString);
        End If;
        //Check if the SEPARATORS parameter is present
        If ComboBoxBinding.SeparatorsDefined Then
            Debug.WriteLine("SEPARATORS: " + ComboBoxBinding.Separators);
        End If;
    End If;
End Sub ComboBoxBindingInfo;

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

See also:

IBindingComboBox