GetObjectTypeName (open)

Returns the name of the object type of an object

Syntax

LOADLIB "wh::devsupport.whlib";

STRING FUNCTION GetObjectTypeName(OBJECT obj)

Parameters

OBJECT obj

Object to return the name for

Return value

STRING

Returns the name of the object type this object was last extended with

Description

GetObjectTypeName returns the name of the last objecttype this object type was extended with (or the type of the object itself if it wasn't extended at all) For empty or non-existing objects, an empty string is returned.

Examples

OBJECTTYPE <
  INTEGER FUNCTION CallMe() > otype;

// This prints 'OTYPE'
PRINT(GetObjectTypeName(NEW otype));