The Modify method changes the text of the list item at the specified position in the combo box.


The arguments are:


The one-based index of the combo box item of which the text is to be changed. If you omit this argument, the currently selected item is modified.


The new text string to be displayed at the given position.

Return value:

The one-based index of the modified combo box item at the given position. The return value is 0 if an error occurred, or -1 if the index does not refer to an item.