Forum Discussion

Ravik's avatar
Ravik
Super Contributor
13 years ago

How can store Drop down values in array or a variable

Hi Team,



Please could you suggest me, How can we store a Drop down values in array or a variable
  • Anumakonda_mahe's avatar
    Anumakonda_mahe
    Frequent Contributor
    Hi ravi,



    Check this Code, pls. update the code which is bold with you application dropdow aliase path.




    Sub  Droplist()



    Dim Dlist, Listcount



    Dlist = Aliases.iexplore.MainPage.formF1.table.cell1.table.cell.frameAppbody.frameBodyframe.formForm1.tableTt.cell.tableTable1.cellMaintd38.panelPanel1.tableDynamictable.cellMaintd17.selectOptiontype1.wItemList



    Listcount = Split (Dlist,";")



    For i = 0 to uBound(Listcount)



    Log.Message(Listcount(i))



    Next



    End SuB