ExpressionEditComboBoxItems.Insert

Syntax

ExpressionEditComboBoxItems.Insert( itemIndexParam, val, displayName = "", icon = NULL)

Return Value

ExpressionEditComboBoxItem

The item added to the drop-down list.

Purpose

Adds a new ExpressionEditComboBoxItem in the drop-down list.

Parameters

itemIndexParam As Long

[In] Specifies the zero-based index where the new item is inserted. Pass -1 to insert the item at the end of the drop-down list.

val As String

[In] Specifies the ExpressionEditComboBoxItem.Value property of the new item. This value appears in the drop-down list when the displayName parameter is empty.

displayName As String

[In] Specifies the ExpressionEditComboBoxItem.DisplayName property of the new item. When this value is not empty, the display name is shown in the drop-down list for the item instead of the val parameter. Display names are useful for displaying a simple name for a complex expression in the drop-down list.

This parameter has a default value of "" .

icon As Picture

[In] Specifies the ExpressionEditComboBoxItem.Icon property of the new item. This method makes a copy of the picture you pass. You can use the ExpressionEditComboBoxItem.Icon property to either use a picture directly or make a copy of a picture.

This parameter has a default value of NULL .

See Also

ExpressionEditComboBoxItem

ExpressionEditComboBoxItem.DisplayName

ExpressionEditComboBoxItem.Icon

ExpressionEditComboBoxItem.Value

ExpressionEditComboBoxItems.Remove