Re: Getting the "Count" of a ComboBox
Set p = Sys.Process("How-To ListBox And ComboBox")
Set w = p.frmMain
For i = 0 To w.cboDemo.wItemCount -1
'To try the .Click Action
'To try the .set_SelectedIndex Method
MsgBox "Index: " & i & vbCrLf & _
"Text: " & w.cboDemo.wText
You might try one of the above (the set_SelectedIndex is a Method of a .NET ComboBox). If you are not seeing the wText or wItemCount etc... you may need to set an alias through the Engine Options --> Object Mapping.
Getting the "Count" of a ComboBox
I’m working with a Windows32 Open Application with VB Script selected. I cannot get my ComboBox to return the “Count” of all items in the ComboBox. Once I get the integer I want to then iterate through the items with a loop. I tried using “GetListCount” and “GetListItem” (w.Window("ComboBox", "", 1).GetListItem()). How is this accomplished???