ObjectHasMethod()

Summary

Determines whether an object's class, or an inherited class, implements a method.

Changes

Added to Version 5.0.

Syntax

answer = ObjectHasMethod(object obj, string method_name)

Argument Contents
obj An object variable
method_name The name of the method

Returns

The string "True" if the object's class, or an inherited class, implements a method of this name, otherwise "False."

Error Codes

Error Type Meaning
Error obj or method_name is null

See Also

Function Summary
CreateObject() Creates a new object variable based on a class
GetClassMethodNames() Returns a list of the names of the methods defined for the class
GetObjectClass() Gets the name of the class for an object
GetObjectVariableNames() Gets a list of the variable names for an object
IsKindOfClass() Determines whether an object is in a class or inherits from that class