inheritsFrom
inheritsFrom(type: Type): Boolean;
The inheritsFrom method of the Type class returns true if the receiver inherits methods and properties from the type specified in the type parameter; for example:
if cls.inheritsFrom(MyNewDialog) then if form.borderStyle = BorderStyle_Sizable then write form.name; endif; endif;
A type always inherits from itself.