Forum Discussion
tristaanogre
14 years agoEsteemed Contributor
Is the component a direct child of MyWindow? If so, you could do the following
I suspect that the problem is that your "Find" call is not actually finding the component and is returning an empty object.
Personally, when using the "Find" method, I tend not to use "Name" but use, instead, other properties of the component to find what I'm looking for. You might want to try using other properties and arrays of properties for your find method to see if you can get to your component.
var MyComponent = MyWindow.WaitVCLObject("ComponentName", 10000)
I suspect that the problem is that your "Find" call is not actually finding the component and is returning an empty object.
Personally, when using the "Find" method, I tend not to use "Name" but use, instead, other properties of the component to find what I'm looking for. You might want to try using other properties and arrays of properties for your find method to see if you can get to your component.
Related Content
- 5 years ago
- 4 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago