Forum Discussion

murugans1011's avatar
murugans1011
Regular Contributor
12 years ago

Help List.selectItem

List.SelecItem("item1") ---this method post error msg "The control item was not found" if the item1 was not found in the list ----Is there any alternate to prevent posting error to test log if control item was not found?

1 Reply


  • Hi Murugan,


     


    I would suggest that you check whether the needed item exists in the list box first. If the item exists, you can select it via SelectItem. To get the list of all items of the list box control, you can call the wItemList property.