Return true if the object has the property
The object (can be a control) to check
The name of the property to check for
HasProperty(ctrl1, "SubDatasheet")