03-21-2009, 01:25 PM
'For Combo Box
' For WinList/Dropdown List
Code:
co=window("Flight Reservation").WinComboBox("Fly From:").GetItemsCount
msgbox co
For i=0 to co-1
val=window("Flight Reservation").WinComboBox("Fly From:").GetItem(i)
print val
Next
' For WinList/Dropdown List
Code:
itco=dialog("Flights Table").WinList("From").GetItemsCount
msgbox itco
For i=0 to itco-1
val=dialog("Flights Table").WinList("From").GetItem(i)
msgbox val
Next