Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
55
How to get a count of the Members in a Collection on UltraWinToolbars (SwfToolBar)
posted

Control: Infragistics2.Win.UltraWinToolbars (SwfToolBar)
Version: TestAdvantage 7.1.20071.40
QTP 9.2 with .NET and WEB add-in

Our AUT has a Toolbar Ribbon that contains Tabs[.Groups[.Tools[.  I need the ability to loop through the Members of each Collection.  Typically, I use GetNAProperty to obtain a count of the Members of the Collection, so I know when to terminate the loop.  However, I cannot locate a property in these Collections that contains a count.  Is there a method or a process that will return a count of the Members of a Collection, or perhaps another way to terminate the loop before exceeding the index range?  Thank you.

Parents
No Data
Reply
  • 55
    posted

    Some additional information:  I have since tried the following...

    Dim objTabs, objItem
    Set objTabs = .SwfToolbar("_Toolbars_Dock_Area_Top").GetNAProperty ("Ribbon.Tabs")
    Set objItem = CreateObject(objTabs)
    For each objItem in objTabs
     MsgBox "Collection Test", vbInformation, "Test"
    Next

    I receive the following Run Error at the CreateObject line:  ActiveX component can't create object: 'Infragistics.Win.UltraWinToolbars.RibbonTabCollection'

    Any ideas?

Children