GetSuperClass
Description
Returns the ancestor class of the specified class, if any.
Syntax
|
1 |
GetSuperClass(pbclass cls) |
|
Argument |
Description |
|---|---|
|
cls |
A valid class handle for the descendant |
Return value
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:
|
1 2 3 4 5 6 7 |
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
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest