HI_AddItem

HI_AddItem

%HI_AddItem function


Function

The function adds a row to the specified Windows control of the List box type (Control function).

Declaration

%HI_AddItem( INT in refId, TEXT in itemText [, HBJ in beforeItemIdx] )

Parameters

refId

Reference to graphic object (reference variable).

itemText

Text displayed in the added row.

beforeItemIdx

Index of the row, before which the added row will be inserted.

Description

The function allows to add the row to the list box. The list box is defined by the reference variable refId. Text of the row is defined by the parameter itemText. If the parameter beforeItemIdx is not entered, the item will be added to the end. If it is entered, its value defines the index of the item, before which the new item will be inserted.
Rows are numbered from 1...