BitConverter: ToBoolean

ToBoolean

Converts an array of bytes to a Boolean value.



 Public Function ToBoolean(
	  ByRef Bytes ( ) As Byte,
	  ByVal startIndex As Long ) As Boolean

Parameters

Bytes
[ByRef] Byte. The array of bytes to create a boolean from.
startIndex
[ByVal] Long. The byte in the array to create the boolean from.

Return Values

Boolean -  Boolean representation of the byte used in the array.

Remarks

The boolean value is created from one byte. If the byte is a non-zero value, True is returned, otherwise, False is returned.

See Also

Project VBCorLib Overview Class BitConverter Overview BitConverter Properties BitConverter Methods Int64BitsToDouble ToCurrency