MAK function

Purpose

Create an integer class value of a specified data type.

Syntax

resultvar = MAK(datatype, loworderval, highorderval)

Remarks

Create an integer class value of a specified data type (WORD, DWORD, PTR , INTEGER, LONG, QUAD) from a low-order and a high-order part.

The complements to this function are the HI, HIWRD, HIINT, LO, LOINT and LOWRD functions, which may be used to split a single 32-bit value into two 16-bit components.

Restrictions

MAK supercedes the MAKWRD, MAKDWD, and MAKPTR functions. Those functions may not be supported in future versions of PowerBASIC, so update your code to use the new syntax.

See also

HI, LO

Example

dwResult = MAK(DWORD, x??, y??)