GetSuperClass

PowerBuilder Native Interface

IPB_Session interface:

GetSuperClass method

Description

Returns the ancestor class of the specified class, if any.

Syntax

GetSuperClass(pbclass cls)

Argument

Description

cls

A valid class handle for the descendent class

Return Values

pbclass or 0 if the class has no ancestor.

Examples

These statements get the class of an object in the PBCallInfo structure, the ancestor class of that class, and then the name of the ancestor class:

pbclass cls, cls_parent;
LPCSTR clsname;

cls = Session-> GetClass(ci-> pArgs-> GetAt(0)->
   GetObject());
cls_parent = Session-> GetSuperClass(cls);
clsname = Session-> GetClassName(cls_parent);

See Also