Doug,
Awh, I was sure that the problem was in front of the PC ;-)
Works great now, Many thanks!!!

Cheers,
  Ralf

Ralf Kefferpuetz 
GCS Technical Operations Manager 
Phone:          +49 6196-4728-555 
Mobile:         +49 171-5582096 



-----Original Message-----
From: Doug Geoffray [mailto:[email protected]] 
Sent: Tuesday, 24. January 2012 2:13
To: [email protected]
Subject: Re: problems with tab control properties

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
>


Reply via email to