Forum Discussion
Here's a simple example, of using FindAll to search for all objects that have the specified value of 'ObjectType' and of the specified property 'Button'.
The search is performed in the object hierarchy displayed in the Object Browser panel starting from 'Panel("main")' object and continuing down the hierarchy to the specified depth of 1.
If you were to do
let headerItems = headerInputs.FindAll('type','*',5000);
Log.Message("Number of items: " & UBound(headerItems))
What does "Number of items:" show? And what does the Object Browser hierarchy show?
Hi,
This is my 4th attempt to answer you. From some reasons, my answers disappear few minutes after posting :) My guess is that it happens because of attached images? I will try to attach the pictures in separate answers.
The code returns "1" and the found element is just the first element from the expected array of elements.
As for the Object Browser, no matter what I try, it always shows an ancestor element, instead of the one I'm trying to show.
- pkudrys13 days agoFrequent Contributor
Array length