Dynamically invokes a method whose name and parameters must be set at run time. The Invoke( ) method is one of several reflection methods of the Progress.Lang.Class class that provide type information about a class or interface at run time.
Return type: Any data type
Access: PUBLIC
Applies to: Progress.Lang.Class class
Four overloaded versions are supported. The first version is used to invoke a method that does not take any parameters.
[ return-value = ] class-reference:Invoke ( INPUT object-reference AS Progress.Lang.Object , INPUT method-name AS CHARACTER ) |
The second overloaded version is used to invoke a method that takes zero or more parameters. Since parameterlist-object can be built with zero or more parameters, this version of the Invoke( ) method can be used to invoke any method, even those that do not take any arguments.
[ return-value = ] class-reference:Invoke ( INPUT object-reference AS Progress.Lang.Object , INPUT method-name AS CHARACTER , INPUT parameterlist-object AS Progress.Lang.ParameterList ) |
The third overloaded version is used when invoking a static method that does not take any parameters.
The fourth overloaded version is used when invoking a static method that takes zero or more parameters. Since parameterlist-object can be built with zero or more parameters, this version of the Invoke( ) method can be used to invoke any static method, even those that do not take any arguments.
[ return-value = ] class-reference:Invoke ( INPUT method-name AS CHARACTER , INPUT parameterlist-object AS Progress.Lang.ParameterList) |
Element descriptions for the syntax diagrams follow: