Check if a COM object has a property (attribute)

has_COM_property(x, prop_name)

Arguments

x

any object

prop_name

a single property name to query, as a character

Value

TRUE if x is a COM object with the given property