BitConverter: ToInteger

ToInteger

Converts an array of bytes to an Integer value.



 Public Function ToInteger(
	  ByRef Bytes ( ) As Byte,
	  ByVal startIndex As Long ) As Integer

Parameters

Bytes
[ByRef] Byte. The array of bytes used to create an integer from.
startIndex
[ByVal] Long. The starting byte in the array to create an integer from.

Return Values

Integer -  Integer datatype representation of the 2 bytes used in the array.

Remarks

See Also

Project VBCorLib Overview Class BitConverter Overview BitConverter Properties BitConverter Methods ToDouble ToLong