MAKDWD, MAKLNG and MAKPTR functions

Purpose

Take the low-order 16-bits from each of two integer class variables and combine to produce a single 32-bit value.

MAKDWD, MAKLNG and MAKPTR have been superceded by the MAK function, although they remain supported for a limited period.  Existing code should be converted to the new syntax as soon as possible.

Syntax

value??? = MAKDWD(loword, hiword)

value&   = MAKLNG(loword, hiword)

value??? = MAKPTR(loword, hiword)

Remarks

MAKDWD, MAKLNG and MAKPTR take the low-order 16-bits from each of loword and hiword, and combine them into a single 32-bit value.  MAKDWD returns an unsigned 32-bit DWORD value, MAKLNG returns a signed 32-bit Long-integer value and MAKPTR returns an unsigned 32-bit DWORD (pointer) value.

loword

Forms the least significant or "low-order" 16-bits of the 32-bit result value.

hiword

Forms the most significant or "high-order" 16-bits of an 32-bit result value.

See also

MAK