MakeWParam Function

Action

Makes a 32-bit value from two 16-bit values.

Syntax

z% = MakeWParam( lo, hi )

hi, lo:Short
z%:Integer

Description

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

Example

Debug.Show

Trace Hex(MakeWParam(1, 2), 8)    // 20001

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

Remarks

This command is the same as the C macros MAKEWPARAM and MAKELPARAM.

MakeWParam is not the same as MakeLong.

See Also

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

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