MakeLong Functions

Action

Makes a Long from two 16-bit integers

Syntax

z% = MakeLong( hi, lo)

z% = MakeLongHiLo( hi, lo)

z% = MakeLongLoHi( lo, hi )

hi, lo:Short
z%:Integer

Description

Make Long and MakeLongHiLo() create a 32-bit integer value from two unsigned 16-bit integers. The first value is placed in the high order word of the long integer.

MakeLongLoHi() creates a 32-bit integer value from two unsigned 16-bit integers. The first value is placed in the low order word of the long integer.

Example

Debug.Show

Trace Hex(MakeLong(1, 2))     // $10002

Trace Hex(MakeLongHiLo(1, 2)) // $10002

Trace Hex(MakeLongLoHi(1, 2)) // $20001

See Also

MakeL2L(), MakeL2H(), MakeL3H(), MakeL3L(), MakeL4H(), MakeL4L(), MakeLarge(), MakeLargeHiLo(), MakeLargeLoHi(), MakeWord(), MakeWordHiLo(), MakeWordLoHi(), MakeWParam()

{Created by Sjouke Hamstra; Last updated: 02/04/2021 by James Gaite; Other Contributors: Jean-Marie Melanson}