<-- Previous || Up || Next -->

Coerce Two Bytes To Integer Function
Windows API Class

Public Function CoerceTwoBytesToInteger( _
      ByVal vLo As Byte _
    , ByVal vHi As Byte _
    ) As Integer

Coerce two Byte values into an Integer value.
Return the Integer value whose low-order byte (first, least-significant-byte) is vLo
and whose high-order byte (last, most-significant-byte) is vHi.
Inverse/opposite of the HIBYTE and LOBYTE functions.

Examples:
    CoerceTwoBytesToInteger(1, 2) = 513
    CoerceTwoBytesToInteger(2, 1) = 258
    CoerceTwoBytesToInteger(254, 255) = -2
    CoerceTwoBytesToInteger(255, 254) = -257
See also:
    HIBYTE Function
    LOBYTE Function
    MakeByte Function
    CoerceToInteger Function

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.