Modify

>>-aListBox~Modify(--+-------+--,--newText--)------------------><
                     +-index-+


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

Arguments:

The arguments are:

index

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

newText

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

Return value:

The one-based index of the modified list 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.