ListBarPageItems.Insert

Syntax

ListBarPageItems.Insert( itemCaption, iconName, insertBefore)

Return Value

ListBarPageItem

Purpose

Inserts a new item into the ListBarPage.

Remarks

Note When you connect a ListBarPage to a manager control, the ListBarPage becomes read-only. Attempting to change the content by calling this method results in an error.

Parameters

itemCaption As String

[In] Specifies the caption for the new item.

iconName As String

[In] Specifies the name of the icon for the new item. Refer to the ListBarPageItem.IconName property for more information about naming icons for an item. Icon files are located in the <TestStand> \Components\Icons and <TestStand Public> \Components\Icons directories.

insertBefore As Long

[In] Specifies the index of the existing item before which the new item is inserted. Pass -1 to insert the item at the end.

See Also

ListBarPageItem.IconName

ListBarPageItems.Clear

ListBarPageItems.Remove