GetClass( ) method (Progress.Lang.Class)

Returns the object reference for the Progress.Lang.Class instance associated with a specified class or interface type.

Return type: Progress.Lang.Class class

Access: PUBLIC STATIC

Applies to: Progress.Lang.Class class

Syntax

GetClass ( INPUT object-type-name AS CHARACTER )
object-type-name
A CHARACTER expression that evaluates to a fully qualified object type name.

If object-type-name does not evaluate to a valid ABL class or interface type, this method returns the Unknown value (?).

Note: Because the Progress.Lang.Class class has a private constructor, you cannot inherit from it. Therefore you must always invoke this static method using its class type name.

As an alternative to the GetClass() method, the GET-CLASS function also returns the object reference for the given class or interface, but it takes a type name as an argument instead of a CHARACTER expression.

See also

GET-CLASS function