Forum Discussion
AlexeyK
Alumni
14 years agoHi,
There can be different reasons for the behavior you describe. The index parameter depends on various factors. If the index is not important, you can ignore it and use the default value (-1). If the index cannot be skipped, you have to indentify objects by its other property values. For example, by the name defined in the application source code, by the number of child objects, and so on. To obtain an object by an arbitrary set of its properties, you can use the FindChild method. Also, see Searching for an Object.