For example Here ("ListBoxItem", "", 3). the index 3 is getting changed when i run the script in second time and Testcomplete is not identifying the object
Here testcomplete is not giving the chechbox name
Please help me
I don't know what actual problem you are facing but i guess its not TC issue. This the problem that you application does not kill the process object, thats why its created with new index of instance. i have 2 solutions for this
1. close you application and kill all process that associates with your application manually by task manager or add login/logout code in your script.
2.Use for/while loop to increase the index for your object.
If the indexes are not reliable, you just need to use other properties to recognize the needed object. This can be achieved via the FindChild method or the Name Mapping feature. As an alternative, if you need a child object and not the object with unreliable recognition criteria, you can make TestComplete retrieve the child object regardless of its position in the hierachy via the FindChild method (and skip the problematic object). Please see the "Name Mapping - Overview" (http://smartbear.com/support/viewarticle/11327/) and "FindChild Method" (http://smartbear.com/support/viewarticle/11716/) help topics for more information.
BTW, the latest version of TestComplete is v. 8.20 and I recommend that you update to this version.