ListBox.DeselectItem

ListBox.DeselectItem (

string ObjectName,

number Index )

Description

Deselects a currently selected item in a listbox object.

Parameters

ObjectName

(string) The name of the listbox object.

Index

(number) The index (or line number) of the item to deselect in the listbox object.

Tip: You can use an index of -1 (or variable LB_ALLITEMS) to deselect all items in the listbox.

Returns

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

See also: Related Actions