Micro Focus QTP (UFT) Forums

Full Version: GetRoProperties("enabled") returns null?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey helpful people,

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!
When you spy, what do you see enabled property value as?
Hi RandomGrin,

You need to spying, Just check that "enabled" property is showing value or not.

-Sarfraz
Spy says False, just as it should at the moment.