Micro Focus QTP (UFT) Forums
Retrieve the name of button of toolbar - 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: Retrieve the name of button of toolbar (/Thread-Retrieve-the-name-of-button-of-toolbar)



Retrieve the name of button of toolbar - Langxii - 03-04-2010

Hi,

I tried to get name button of tool bar by using GetItem . I got error
" Invalid procedure call or argument"

Code:
For index = 1 To cbuttontoolbar
    sName = SwfWindow("Application:").SwfWindow("Maintenance").SwfToolbar("_ctlUltraWinGrid_Toolbars_Dock").GetItem(index)
Next


Would you help please? Thank you