Release 10.1A: OpenEdge Getting Started:
Object-oriented Programming

> ## Getting a Progress.Lang.Class instance

> You can get an instance of a `Progress.Lang.Class` for an instantiated class-based object by invoking the Progress `GetClass( )` method on any valid object reference.

> This is the syntax to get a `Progress.Lang.Class` for an instantiated object:

> Syntax
>     class-reference = object-reference:GetClass( ).

> Element descriptions for this syntax diagram follow:

> ``class-reference``

> An object reference defined as the data type, `Progress.Lang.Class`.

> ``object-reference``

> A reference to an instantiated class-based object.

> For example:

>     DEFINE VARIABLE myCustObj AS CLASS acme.myObjs.CustObj NO-UNDO.
>     DEFINE VARIABLE myType AS CLASS Progress.Lang.Class NO-UNDO.
>     myCustObj = NEW acme.myObjs.CustObj ( ).
>     myType = myCustObj:GetClass( ).

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095