ListBox.IsItemSelected

boolean ListBox.IsItemSelected ( 

string ObjectName,

number Index )

Example 1

is_selected = ListBox.IsItemSelected("ListBox1", 4);

Determines whether or not the fourth item in the "ListBox1" listbox object is selected and stores the true/false result in the variable "is_selected."

Example 2

first_selected = ListBox.IsItemSelected("PictureShow", 1);

Checks to see if the first item in the listbox object called "PictureShow" is selected. If it's selected, true will be stored in the variable "first_selected". If it's not selected, false will be returned.

See also:  Related Actions