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

Coerce Two Integers To Long Function
Windows API Class

Public Function CoerceTwoIntegersToLong( _
      ByVal vLo As Integer _
    , ByVal vHi As Integer _
    ) As Long

Coerce two Integer values into a Long (Integer) value.
Return the Long value whose low-order word (2 bytes) has the same representation as vLo,
and whose high-order word has the same representation as vHi.
Inverse/opposite of the HIWORD and LOWORD functions.

Examples:
    CoerceTwoIntegersToLong(1, 2) = 131073
    CoerceTwoIntegersToLong(2, 1) = 65538
    CoerceTwoIntegersToLong(0, 32767) = 2147418112
    CoerceTwoIntegersToLong(0, -32767) = -2147418112
See also:
    HIWORD Function
    LOWORD Function
    MakeInteger Function
    CoerceToLong Function

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