textObject.SetListBoxSelection( Index )
Index – the Index position of the line you want to select. Index is a zero-based index. If Index is set to –1 then the current list box selection is cleared. This parameter is required.
This function allows you to highlight a particular line in a Listbox object. It can also be used to clear the currently highlighted area of a list box – it does not delete the line’s text.
Note:
This function is for Listbox objects only. Using this function with other Text objects will have no effect.