Release 10.1A: OpenEdge Development:
Progress 4GL Reference

> ## TYPE-OF function

> Verifies that the object instance to which the specified object reference applies is an instance of the specified class type, inherits from the specified super class, or implements the specified interface. If the object reference represents an object instance of the specified type, the function returns TRUE. Otherwise, it returns FALSE.

> #### Syntax

>     TYPE-OF ( object-reference, type-name ).

> ``object-reference````

> An object reference for a user-defined class object instance.

> ``type-name``

> A character string that specifies the type name of a class, a super class, or an interface. Specify a type name using the `package`.`class-name` syntax as described in the Type-name syntax reference entry in this book.

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