RunUnitGetBytesCount Method

MicroFocus.COBOL.RuntimeServices
Gets the length/size of a byte[] for a string in the charset of 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 int GetBytesCount(
	Object program,
	string aString
)

Parameters

program
Type: SystemObject
aString
Type: SystemString

Return Value

Type: Int32

Implements

IRunUnitGetBytesCount(Object, String)
Exceptions

ExceptionCondition
ArgumentExceptionIf StopRun method has already been invoked.
Examples

var howManyBytes = myRunUnit.GetBytesCount(myRunUnit.GetInstance(typeof(Program1), true), "MyBytes");
See Also

Reference