Kbase P111743: What is CAST function?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  30/01/2006 |
|
Status: Unverified
GOAL:
What is CAST function?
GOAL:
How to cast an 4GL object to another?
FACT(s) (Environment):
OpenEdge 10.1x
FIX:
CAST function: Casts an object reference of one class type to another class type within a class hierarchy.
When you cast an object reference, Progress treats the object reference as if it were an instance of the class type to which it was cast. The underlying object instance does not change.
Syntax: CAST( object-reference, type-name ).
object-reference: An object reference for the user-defined class object instance to cast.
type-name: A character string that specifies the type name of the class or interface to which the object reference is cast. This class or interface must be in the hierarchy of the defined class. Specify a type name using the package.class-name syntax as described in the Type-name syntax reference entry in this book.