Forum Discussion
2 Replies
Sort By
- TanyaYatskovskaSmartBear Alumni (Retired)Hi Amod,
You can try using the wSelected property like in this sample:
//JScript
function Test()
{
var p, ListView, Item;
p = Sys.Process("ListViewSample");
ListView = p.Window("MyWndClass", "Form1").Window("SysListView32");
Item = "Item 5";
if (ListView.wSelected(Item))
Log.Message("The list view item '" + Item + "' is selected.")
else
Log.Message("The list view item '" + Item + "' is not selected.");
}
Refer to the "Checking List View Items' State" article to learn other ways to accomplish your task.
- amod_kulkarniNew ContributorHi Tanya,
Thanks for your feedback.
I want to check the enabled/disabled state of item (in other words, whether the item is available for user input or is it readonly). I believe wSelected property checks whether the item is selected in listview or not. So it does not serve the purpose.
Thanks,
Amod Kulkarni
Related Content
- 2 years agoDesktopapptesti
- 3 years agoOAn
- 5 years agopaarmann-ara
- 10 years agoAxelChrist
- 10 years agojsayre
Recent Discussions
- 3 days agovladd1