Ralf,
The problem is you are trying to use the Control object properties from
the Window object. Meaning you need to get a Control object first. For
example instead of:
print tabby.count
it should be:
print tabby.Control.Count
The same is true for all the other properties.
Doug
On 1/24/2012 6:11 AM, [email protected] wrote:
Hi all,
I'm trying to get properties of a tab control, but I can't get it to work. I
tried it with several tab controls, but no luck. In the example below I look to
the tab control of the Outlook 2007 options screen. As you can see I'm getting
the right control, but none of the properties is working so far. Any idea or
hint is highly appreciated.
Set findIt = activeWindow.Children.FilterByClassAndModule("SysTabControl32", "")
print findIt.count
1
Set tabby = findIt(1)
print tabby.name
SysTabControl32
print tabby.type
19
print tabby.count
Error: Object doesn't support this property or method: 'tabby.count'
print tabby.FocusedIndex
Error: Object doesn't support this property or method: 'tabby.FocusedIndex'
print tabby.SelectedIndex
Error: Object doesn't support this property or method: 'tabby.SelectedIndex'
print tabby.Text(1)
Error: Object doesn't support this property or method: 'tabby.Text'
Best regards and thanks,
Ralf