Forum Discussion
tristaanogre
14 years agoEsteemed Contributor
try/catch only catches certain kinds of errors, I believe. Someone posted up here at one point what the classification is but I can't recall right now.
You're looking to find out if the object supports a particular property, correct?
Try aqObject.IsSupported. I'd change your code to the following.
You're looking to find out if the object supports a particular property, correct?
Try aqObject.IsSupported. I'd change your code to the following.
try
{
strObjectType = "";
if ((oMyTestObject!= null) && (aqObject.IsSupported(oMyTestObject, "objectType")))
{
strObjectType = oMyTestObject.objectType;
}
}
catch (oE)
{
// do nothing
}
Related Content
- 3 years ago
- 11 years ago
- 12 years ago
- 6 years ago
- 10 years ago
Recent Discussions
- 9 hours ago
- 4 days ago