Executes a program in the new run-unit with a set of parameters
The parameters are currently restricted to objects or native IL types
The parameters are currently restricted to objects or native IL types
Namespace: MicroFocus.COBOL.RuntimeServices
Assembly: MicroFocus.COBOL.RuntimeServices (in MicroFocus.COBOL.RuntimeServices.dll) Version: 1.2.3.4
Syntax
Parameters
- program
- Type: System.String
- parameters
- Type:System.Object[]
Return Value
Type: Int32Implements
IRunUnit.Call(String,Object[])Exceptions
Exception | Condition |
---|---|
ArgumentException | If StopRun method has already been invoked. |
Examples
// Call the COBOL method and implicitly instantiate it Result = myRunUnit.Call("Program1", "Jim", 10);
See Also