02-27-2013, 01:15 AM
(This post was last modified: 02-27-2013, 01:22 AM by RandomGrin.)
Hey helpful people,
When I do this:
I get a msgbox with no contents...which I assume means NULL.
I was expecting 0/1 or True/False.
Same thing happens with "disabled".
If the wincheckbox is enabled, I am able to set the value just fine, so there is no problem with object identification.
QTP 11.0
Googling has giving me no hints.
Anyone got any ideas what is happening here?
Thanks,
And the same thing happens with GetToProperty.
I need to avoid the error, 'object is disabled' when I try to set the value.
But I am not able to tell if it is disabled or not before setting the value....Help!
When I do this:
Code:
IsEnabled = Dialog("Whatever").WinCheckBox("what ever").GetROProperty("enabled")
msgbox IsEnabled
I get a msgbox with no contents...which I assume means NULL.
I was expecting 0/1 or True/False.
Same thing happens with "disabled".
If the wincheckbox is enabled, I am able to set the value just fine, so there is no problem with object identification.
QTP 11.0
Googling has giving me no hints.
Anyone got any ideas what is happening here?
Thanks,
And the same thing happens with GetToProperty.
I need to avoid the error, 'object is disabled' when I try to set the value.
But I am not able to tell if it is disabled or not before setting the value....Help!