Buffer: ByteLength

ByteLength

Returns the length of the array in bytes.



 Public Function ByteLength(
	  ByRef Arr As Variant ) As Long

Parameters

Arr
[ByRef] Variant. The array to retrieve the size in bytes from.

Return Values

Long -  The size of the array in bytes.

Remarks

The size is calculated by taking the number of elements in the array and multiply it by the number of bytes each element is in length.

Exceptions

ExceptionCondition
ArgumentNullExceptionArr is unintialized.
ArgumentExceptionArr is not an array.

See Also

Project CorLib Overview

Class Buffer Overview