Forum Discussion
AlexKaras
Champion Level 3
Hi,
> instead of showing FullName it showing empty list.
.FindAllChildren() returns an array of found objects.
In your code (lm.FullName) you are trying to get the value of the .FullName property of the array. As the array does not have FullName property an empty value is returned.
Documentation for .FindAllChildren() method provides an example with the iteration through the resulting array. Check it and I hope that it will help.
As an example, modification of your code (JavaScript):
if(lm.length>0){
Log.Message("length exist");
for (let i = 0; i < lm.length; i++) // iterate through the array
Log.Message(lm[i].FullName);
}
Related Content
Recent Discussions
- 2 days agoGane195