GetConstructor( ) method

Returns a Progress.Reflect.Constructor instance describing the class constructor that matches the specified conditions. If there is no matching constructor, the method returns the Unknown value (?).

Return type: Progress.Reflect.Constructor class

Access: PUBLIC

Applies to: Progress.Lang.Class class

Syntax

GetConstructor ( INPUT params AS Progress.Lang.ParameterList )

GetConstructor ( INPUT flags AS Progrss.Reflect.Flags,
                 INPUT params AS Progress.Lang.ParameterList )
params
A Progress.Lang.ParameterList instance that describes the parameter list of the constructor you are looking for. If you are looking for a constructor that takes no parameters, pass a ParameterList instance with its NumParameters property set to 0.
flags
A Progress.Reflect.Flags instance indicating the access mode(s) the returned constructor must have. See Progress.Reflect.Flags enumeration for more information.
Caution:
This method does not return static constructors, so setting the Static flag will raise an error. This method defaults to returning instance constructors, so you do not need to set the Instance flag.

Notes