Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Clipper Tools One Guide - <b>numhigh()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
NUMHIGH()

Syntax:     NUMHIGH(<expH>)

Arguments:  <expH> is either a decimal number or a hexadecimal string
            of digits.

Returns:    A numeric value.
            The high value byte of the 16-bit number <expH> will
            be returned.

Usage:      NUMHIGH() will break down a 16-bit number into its two
            bytes and return the high byte as the result.  This is
            particularly important when using functions such as
            SCANKEY(), GETCURSOR(), etc.  It is then possible to
            separate the two bytes of the keyboard scan codes.

Notes:      An invalid argument will lead to the result -1.

Library:    CT1.LIB


--------------------------------- Example ------------------------------

Examples:   * Breaking down the combined return value of
            * GETCURSOR().

            ? "Starting line of the cursor is:" + NUMHIGH(GETCURSOR())



See Also: NUMLOW()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson