RunUnitGetString Method (Object, Byte)

MicroFocus.COBOL.RuntimeServices
Gets a string that matches the charset of the program

Namespace:  MicroFocus.COBOL.RuntimeServices
Assembly:  MicroFocus.COBOL.RuntimeServices (in MicroFocus.COBOL.RuntimeServices.dll) Version: 1.2.3.4
Syntax

[EditorBrowsableAttribute(EditorBrowsableState.Never)]
[CLSCompliantAttribute(false)]
public string GetString(
	Object program,
	byte[] bytes
)

Parameters

program
Type: SystemObject
bytes
Type: SystemByte

Return Value

Type: String

Implements

IRunUnitGetString(Object, Byte)
Exceptions

ExceptionCondition
ArgumentExceptionIf StopRun method has already been invoked.
Examples

var x  = new Program1();
var byteArray = new byte[] { 65, 77 };
var byteString = myRunUnit.GetString(x, byteArray);
See Also

Reference