RunUnit.GetString 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: System.Object
bytes
Type:System.Byte[]
index
Type: System.Int32
count
Type: System.Int32

Return Value

Type: String

Implements

IRunUnit.GetString(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