Micro Focus QTP (UFT) Forums
can we parameterize drop down list values? - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: can we parameterize drop down list values? (/Thread-can-we-parameterize-drop-down-list-values)



can we parameterize drop down list values? - mahi - 08-06-2008

can we parameterize drop down list values?


RE: can we parameterize drop down list values? - gammaflare - 08-06-2008

Yes you definitely can.


RE: can we parameterize drop down list values? - james0360 - 03-20-2009

how to use all the values from the drop down list


RE: can we parameterize drop down list values? - bfakruddin - 03-21-2009

'For Combo Box

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