mnsam
15 years agoContributor
how to check aqobject is non null so as to check for Menus property
Hi,
I am iterating through menus (win32 application) to check if the intended menu is listed or not. If menu is present, then get the property (enabled/checked) using 'aqObject.GetPropertyValue', however, when the menu is not present, then this method results in error.
Right now i am trying to check aqObject.IsSupported([object],"Id") if it has an Id, if there is id then get property else log error saying "not found".
Is this correct ? or do you people recommend any other way to check the 'aqobject' ?
Thanks,
sam
I am iterating through menus (win32 application) to check if the intended menu is listed or not. If menu is present, then get the property (enabled/checked) using 'aqObject.GetPropertyValue', however, when the menu is not present, then this method results in error.
Right now i am trying to check aqObject.IsSupported([object],"Id") if it has an Id, if there is id then get property else log error saying "not found".
Is this correct ? or do you people recommend any other way to check the 'aqobject' ?
Thanks,
sam