listview.selected Property


value = listview.selected(strItem, strSeparator);
listview.selected(strItem, strSeparator) = value;

Returns true/false if the specified item is selected or not. Set to true to select the item or to false to remove selection. You can set or clear the selection on all items if you pass -1 as the item index.

Parameters

strItem
Required. String containing values for each column of the item. Each of the substrings may contain regular expression patterns.
strSeparator
Optional. Separator character for the multi string. Default value is '|'.

Example

// Test get/set selected
    listview.selected("new|item") = true;
    if (!listview.selected("new|item"))
        Env.LogError("Could not set current selection");
		

See also

listview Overview | listview.selectedItems

 


© 2003 Lightweight Technologies. All rights reserved.