Returns a string describing the constructor, event, method, parameter, property, or data member described by the object the method is invoked on.

Return type: CHARACTER

Access: PUBLIC

Applies to: Progress.Reflect.Constructor class, Progress.Reflect.Event class, Progress.Reflect.Method class, Progress.Reflect.Parameter class, Progress.Reflect.Property class, Progress.Reflect.Variable class

Syntax

ToString( )

The format of the string is similar to the definition statement of the particular class member. Following are examples for each possible object type :

  • Constructor: "CONSTRUCTOR PUBLIC Customer (INPUT name AS CHARACTER)"
  • Event: "PUBLIC EVENT NewCustomer VOID (INPUT name AS CHARACTER)"
  • Method: "METHOD PUBLIC INTEGER CreateCustomer(INPUT name AS CHARACTER)"
  • Parameter: "OUTPUT names AS CHARACTER EXTENT 10"
  • Property: "PROTECTED PROPERTY dd AS DATE GET"
  • Variable: "PUBLIC STATIC VARIABLE cc AS CHARACTER"

Notes

  • The property example given above shows a read-only property. The bodies of a property's GET and SET methods are never shown.