Combo_InsertComboItem
- Updated2023-02-21
- 6 minute(s) read
int Combo_InsertComboItem (int panel, int controlID, int itemIndex, const char *itemLabel);
Purpose
Inserts a new item into the drop down list in an existing Combo Box control.
Parameters
| Input | ||
| Name | Type | Description |
| panel | int | The specifier for a particular panel that is currently in memory. This handle will have been returned by the LoadPanel, NewPanel, or DuplicatePanel function. |
| controlID | int | The defined constant (located in the UIR header file) that was assigned to the original string or the ID returned by the Combo_NewComboBox function. |
| itemIndex | int | The zero–based index into the list where the item will be placed. Pass –1 to insert the item at the end of the list. |
| itemLabel | const char * | The value to be inserted into the list. |
Return Value
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| status | int | Return value indicating whether the function was successful. A negative number indicates that an error occurred.
|
Additional Information
Library: Combo Box
Include file: custctrl\combobox.h
LabWindows/CVI compatibility: LabWindows/CVI 5.5 and later
