HI function   

Purpose

Extract the most significant (high-order) portion of an integer-class value.

Syntax

result = HI(DataType, value)

Remarks

The value returned by HI is unsigned if DataType is BYTE, WORD, or DWORD, and signed if DataType is INTEGER or LONGvalue may be up to twice the size of the data type specified by DataType.  In the following example, n may be up to a 16-bit value (twice the size of a BYTE):

b = HI(BYTE,n)

Restrictions

HI replaces HIBYT, HIWRD, and HIINT.  Note that those functions are no longer supported, so update your code to use the new syntax.

See also

LO, MAK