RunUnitGetString Method (Object, Byte, Int32, Int32)

MicroFocus.COBOL.RuntimeServices
Gets a string that matches the charset of the program using an index/count

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,
	int index,
	int count
)

Parameters

program
Type: SystemObject
bytes
Type: SystemByte
index
Type: SystemInt32
count
Type: SystemInt32

Return Value

Type: String

Implements

IRunUnitGetString(Object, Byte, Int32, Int32)
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, 0, byteArray.Length);
See Also

Reference