Once you've mapped something once, it never needs to be mapped again... there is your "dictionary" of objects, already built in to TestComplete.
I guess I'm confused... what problem are you actually trying to solve?
It is not a builtin from testcomplete but it is in python.
Actually, in the application at navigation bar each item has a different grid. I don't want to declare all grids for Navigation bar and to write a common test scenario so that will works for all grids of navigation bar
thanks and Regards
Right... which is as I said... map the navigation bar and then use FindAllChildren to return a collection of desired grid objects. That will preclude the need for any recursive code.