I'm wondering what you would expect from this line
CODE
Items[n].Items
Normally, I'd say you want to access all items that are n-th item's childs. But this is not how NextInspector treats items.
Some examples:
CODE
if Items[0].Items[2] = Items[1].Items[2] then
ShowMessage('Say what?');
ShowMessage('Say what?');
CODE
ShowMessage(IntToStr(Items.Count)); // obviously returns count of _all_ items (correct)
ShowMessage(IntToStr(Items[0].Items.Count)); // returns count of _all_ items
ShowMessage(IntToStr(Items[1].Items.Count)); // returns count of _all_ items
ShowMessage(IntToStr(Items[2].Items.Count)); // returns count of _all_ items
ShowMessage(IntToStr(Items[0].Items.Count)); // returns count of _all_ items
ShowMessage(IntToStr(Items[1].Items.Count)); // returns count of _all_ items
ShowMessage(IntToStr(Items[2].Items.Count)); // returns count of _all_ items
Is this (mis)behaviour by design?
Cheers,
Markus











