[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
NUMHIGH()
Returns the higher value byte in a 16-bit number
------------------------------------------------------------------------------
Syntax
NUMHIGH(<nWORD|cHexWORD>) --> nByte
Argument
<nWORD|cHexWORD> Designates either a decimal number or hexadecimal
digit string.
Returns
The higher value byte of the <nWORD|cHexWORD> 16-bit number is returned.
Description
NUMHIGH() breaks down a 16-bit number into its two bytes and returns the
higher byte as a result. Use this for such functions as SCANKEY() or
GETCURSOR(), because NUMHIGH() separates the two bytes of the keyboard
scan code.
Note
. An invalid parameter returns a value of -1.
Example
Break down the combined return value of GETCURSOR():
? "Starting line for the cursor is:", NUMHIGH(GETCURSOR())
See Also:
NUMLOW()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson