MakeWord Functions

Action

Makes a 16-bit integer from two bytes.

Syntax

z = MakeWord( hi, lo)

z = MakeWordHiLo( hi, lo)

z = MakeWordLoHi( lo, hi)

hi, lo:Byte
z:Short

Description

MakeWord and MakeWordHiLo() create a 16-bit integer value form two unsigned 8-bit integers. The first value is placed in the high order word of the word integer.

MakeWordLoHi() creates a 16-bit integer value form two unsigned 8-bit integers. The first value is placed in the high order word of the word integer.

Example

Debug.Show

Trace Hex(MakeWord(1, 2), 4)      // 0201

Trace Hex(MakeWordHiLo(1, 2), 4// 0201

Trace Hex(MakeWordLoHi(1, 2), 4// 0102

See Also

MakeL2L(), MakeL2H(), MakeL3H(), MakeL3L(), MakeL4H(), MakeL4L(), MakeLarge(), MakeLargeHiLo(), MakeLargeLoHi(), MakeLong(), MakeLongHiLo(), MakeLongLoHi(), MakeWParam()

{Created by Sjouke Hamstra; Last updated: 12/10/2014 by James Gaite}