IRunUnit Methods

MicroFocus.COBOL.RuntimeServices

The IRunUnit type exposes the following members.

Methods

  NameDescription
Public methodAdd
Adds a new instance of a Procedural COBOL program or Object COBOL Class to the session.
Public methodCall(String)
Executes a program in the new run-unit with no parameters
Public methodCall(String, Object)
Executes a program in the new run-unit with parameters
Public methodCallObject
Executes a program in the new run-unit with parameters returning an obect
Public methodCancel
CANCEL's a program from the rununit
Public methodContainsUserData
Checks if a name is bound to this rununit
Public methodGetBytes
Gets a string that matches the charset of the program using an index/count
Public methodGetBytesCount
Gets the length/size of a byte[] for a string in the charset of program
Public methodGetEnvironmentVariable
Gets the contents of the specified environment variable
Public methodGetInstance(Type)
Given a Type object return the programs instance if the RunUnit knows about it.
Public methodGetInstance(Type, Boolean)
Given a Type object return the programs instance if the RunUnit knows about it and optionally creates it.
Public methodGetString(Object, Byte)
Gets a string that matches the charset of the program
Public methodGetString(Object, Byte, Int32, Int32)
Gets a string that matches the charset of the program using an index/count
Public methodGetUserData
Returns the object bound with the specific name to the rununit
Public methodIsCOBOLProgram
Given a Class object return true if the Class contains anything that is CALLable.
Public methodSetEnvironmentVariable
Sets the contents of specified environment variable to the value given.
Public methodSetUserData
Binds an object to this rununit using the name specified
Public methodStopRun
Terminates the Run Unit
Public methodStopRun(Int32)
Terminates the Run Unit using the supplied return code value
Top
See Also

Reference