The OBJ_HASMETHOD function determines whether an object class implements or inherits a specified method or methods. The function returns true for a given class and method combination if the class or any of its superclasses defines the method.

Syntax


Result = OBJ_HASMETHOD(Objref, Method)

Return Value


A byte array with the same number of elements as Objref. An element of the result array contains a 1 (one) if the class referred to by the corresponding element of Objref implements all of the methods specified by Method, or 0 (zero) otherwise.

Arguments


Objref

An object reference or array of object references. Each object reference is tested separately.

Method

A scalar string or string array specifying the method names. A class specified by an element of Objref must implement all of the methods for the result for that class to be true.

Keywords


None.

Version History


6.4

Introduced

See Also


OBJ_CLASS, OBJ_ISA