GetObjectExtendNames (open)

Returns all the names an object has been created/extended with

Syntax

LOADLIB "wh::devsupport.whlib";

STRING ARRAY FUNCTION GetObjectExtendNames(OBJECT obj)

Parameters

OBJECT obj

Object to return the objecttype names for

Return value

STRING ARRAY

Returns the names of all object type this object was created/extended with

Description

GetObjectExtendNames returns the names of all base objecttypes of this object.

Examples

OBJECTTYPE < > base;

OBJECTTYPE EXTEND base <
  INTEGER FUNCTION CallMe() > otype;

// This prints 'BASE OTYPE'
PRINT(Detokenize(GetObjectExtendNames(NEW otype), ' '));