Skip to content

IsClassOfClass - cObject

Include: Built in; no package required.

Tests whether one class is the same as, or derives from, another class.

Type: Function

Return data type: Boolean

Parameters

Name Type Description
eClass Integer Class to test against.
ePossibleChildClass Integer Class that may be the same as, or derive from, eClass.

Syntax

Function IsClassOfClass Integer eClass Integer ePossibleChildClass Returns Boolean

Call

Get IsClassOfClass (RefClass(cObject)) (RefClass(cObject)) to bIsClass

Description

IsClassOfClass returns whether ePossibleChildClass is the same as, or derives from, eClass. Zero or invalid class references raise a DataFlex error.