Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
Use this piece of code,
Code:
ICount = SwfWindow(" ").SwfComboBox("SwfComboBox").GetItemsCount
msgbox ICount (Output is 2)
For i = 0 to ICount - 1
itemname =swfWindow(" ").SwfComboBox"SwfComboBox").GetItem (i)
msgbox itemname
Next
As saket pointed out you are only msgboxing i value then the retireved item value. You have to store it in a variable and then read from it.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Posts: 6
Threads: 3
Joined: Aug 2009
Reputation:
0
Thanks Saket
I need only the values(LAB & RAD)in the combo box without selecting.
I am using getitem will retrun by index, so first time Lab and second time Rad.
Is my understanding right?
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
@Saket - GetSelection will retrieve the item which is selected ( I suspect if there is a getselection for a swfcombobox..not sure yet.). Getitem will retrieve each item available in the collection.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
Yes,, you are right.
if you dont want to select the item then use a variable to get the value and output that variable, as suggested by Basanth.
Posts: 6
Threads: 3
Joined: Aug 2009
Reputation:
0
Thanks Basanth & Saket
It works.