BitConverter: ToCurrency

ToCurrency

Converts an array of bytes to a Currency value.



 Public Function ToCurrency(
	  ByRef Value ( ) As Byte,
	  ByVal StartIndex As Long ) As Currency

Parameters

Value
[ByRef] Byte. The array of bytes used to create a Currency from.
StartIndex
[ByVal] Long. The starting byte in the array to create a Currency from.

Return Values

Currency -  Currency data-type representation of the 8 bytes used in the array.

Exceptions

ExceptionCondition
ArgumentExceptionStartIndex is greater than or equal to the length of Value minus 7, and is less than or equal to the length of Value minus 1.
ArgumentNullExceptionValue is uninitialized.
ArgumentOutOfRangeExceptionStartIndex is less than zero or greater than the length of Value minus 1.

See Also

Project CorLib Overview

Class BitConverter Overview