[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
nHiByte( nWord )-> <nHiByte>
------------------------------------------------------------------------------
PARAMETER:
<nWord> Is the numeric word value ( Integer, 2 bytes )
RETURNS:
<nHiByte> is the most significant byte of <nWord>
DESCRIPTION:
A word is made of two bytes: a low byte and a high byte. This function
retrieves the high order byte. It is used, for example, if you examine the
wParam argument of some windows messages.
EXAMPLE:
+--------------------------------------------------------------+
| /* Get the HiByte */ |
| nWord := 1534 // Hexadecimal : 05FEh |
| nByte := nHiByte( nWord ) // Hex/Decimal : 5 |
+--------------------------------------------------------------+
SOURCE:
SOURCE\FUNCTION\HILOWORD.C
See Also:
nLoByte
nLoWord
nHiWord
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson