ComboBox.SetSelected

ComboBox.SetSelected (

string ObjectName,

number Index )

Description

Selects the specified item in the combobox object. This action can also be used to unselect items. To clear the selection, you can use -1 as the index.

Parameters

ObjectName

(string) The name of the combobox object.

Index

(number) The index (line number) that will be selected. You can use -1 to clear the selection.

Returns

Nothing. You can use Application.GetLastError to determine whether this action failed, and why.

See also: Related Actions