Hi Robert,
Thanks again for the help.
I've manage to create the array/s but there's still something i can't understand
This is my line of code to create the array for the first project - WPFObject("TreeViewItem", "", 1)
x = Aliases.QuickDesign_ConfigurationManager.BreadsScrumpTree.FunctionalItemsControl.Tree.WPFObject("TreeViewItem", "", 1).FindAllChildren("WPFControlText" , "Printer*" , 20).toArray()
Now, since each Project can have different number of arrays I need every time i want to check the number of printers under specific project to change this value WPFObject("TreeViewItem", "", 1) to WPFObject("TreeViewItem", "", 2) or WPFObject("TreeViewItem", "", 3), etc. somehow when using WPFObject("TreeViewItem", "", 2) i'm getting the right results - Printer 2, Printer, Printer 3 (Wrong order starting from the middle one I would also like to know why the order is wrong) when using WPFObject("TreeViewItem", "", 1) i'm getting 4 items in the array instead of only 2 - Printer 2, Printer 2, Printer, Printer and for WPFObject("TreeViewItem", "", 3) there's no array created because (I Guess) there are no printers under this project. Can you please explain why and where do i get it wrong?
WPFObject("TreeViewItem", "", *) is the only tree junction that i can destinguesh netween the projects -
WPFObject("TreeViewItem", "", 1) - for project 1
WPFObject("TreeViewItem", "", 2) - for project 2
WPFObject("TreeViewItem", "", 3) - for project 3
............
See attached
Thanks