XLL+ Class Library (6.3)

CXlControlListBox::InsertString

Inserts a string at a specific location in a list box

int InsertString(
   int nIndex,
   const char* pszItem
);

Parameters

nIndex

Specifies the zero-based index of the position to insert the string. If this parameter is -1, the string is added to the end of the list.

pszItem

Points to the null-terminated string that is to be inserted.

Return Value

The zero-based index to the string in the list box. The return value is -1 if an error occurs.

Remarks

Inserts a string into the list box.

Requirements

Header: xldialog.h

See Also

CXlControlListBox Class | CXlControlListBox Methods