electroisok
12 years agoOccasional Contributor
Error iterating the items of an object
I use the method FindAllChildren to get a "ContextMenuStrip" object, and I got it correctly. Then I need to iterate inside of the subcontrols of this object. Verifying the object in RAM memory using the Inspect Tool, I can see that the object exists and has the propety "Items" and the size of this array is 2. But when I put the object.Items[0] the test fails. What is the way to index the Items property?
P.D My code is in Jscript
P.D My code is in Jscript
- Yes you are right it accepts Array of properties and values.