06-15-2012, 06:09 PM
Hello,
I have a program that does not have strings built for some objects. Some of the objects are within the same tree. Whenever I use one of the objects it would point to the first object with the name. I then switched over to using ID numbers, but when I upgraded my software all the numbers changed. I was wondering if there was a way to gather the items within a tree and place them into an array of some kind and renaming to how I want.
Example: There are three ("" "" (Calculator) (SciCalc) "" 0x100) and i want to find by using a for loop that searches, and then if one was found it would name it Calc1. Second would be Calc2 and so on.
Any help would be great thank you.
I have a program that does not have strings built for some objects. Some of the objects are within the same tree. Whenever I use one of the objects it would point to the first object with the name. I then switched over to using ID numbers, but when I upgraded my software all the numbers changed. I was wondering if there was a way to gather the items within a tree and place them into an array of some kind and renaming to how I want.
Example: There are three ("" "" (Calculator) (SciCalc) "" 0x100) and i want to find by using a for loop that searches, and then if one was found it would name it Calc1. Second would be Calc2 and so on.
Any help would be great thank you.