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
 
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
[CLSCompliantAttribute(false)]
public int GetBytesCount(
	Object program,
	string aString
)
<EditorBrowsableAttribute(EditorBrowsableState.Never)>
<CLSCompliantAttribute(false)>
Public Function GetBytesCount ( 
	program As Object,
	aString As String
) As Integer
public:
[EditorBrowsableAttribute(EditorBrowsableState::Never)]
[CLSCompliantAttribute(false)]
virtual int GetBytesCount(
	Object^ program, 
	String^ aString
) sealed
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
[<CLSCompliantAttribute(false)>]
abstract GetBytesCount : 
        program : Object * 
        aString : string -> int 
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
[<CLSCompliantAttribute(false)>]
override GetBytesCount : 
        program : Object * 
        aString : string -> int Parameters
- program
- Type: SystemObject
 
- aString
- Type: SystemString
 
Return Value
Type: 
Int32Implements
IRunUnitGetBytesCount(Object, String) 
 
var howManyBytes = myRunUnit.GetBytesCount(myRunUnit.GetInstance(typeof(Program1), true), "MyBytes");
Dim howManyBytes = myRunUnit.GetBytesCount(myRunUnit.GetInstance(GetType(Program1), True), "MyBytes")
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
 
Reference