Because a LstView Control can have many selected at a time you will have to iterate through the options. You actually check a single item rather than checking for which element is selected. You can do something like the following code though....
code:
[...]
var SelectedState = new Array();
var count = PlusWnd.LstView_GetCount("ControlId");
for(i=0;i<count;i++){
SelectedState[i] = PlusWnd.LstView_GetSelectedState("ControlId",i);
}
[...]
If you have your XML set so that you can only have one selected however just try this....
[code][...]
var count = PlusWnd.LstView_GetCount("ControlId");
for(i=0;i<count;i++){
if(PlusWnd.LstView_GetSelectedState("ControlId",i)){
var selected = i;
break;
}
}
As for setting one you just have to do it in much the same way as the ListBox except you need to put in the extra boolean variable for selecting or deselecting.