HIBYTE - Extract the high order byte from a word

Top  Previous  Next

Syntax

<byteResult> := HIBYTE( <wordValue> )

Parameters

<wordValue>

 

The WORD value to extract the high order BYTE from.

Resulting Code

A call to BitShiftMaskSign using the proper parameters to retrieve the high order byte from <wordValue>.

Description

HIBYTE retrieves the high order BYTE from the WORD <wordValue>.

Classification

Core

Category

Value analysis macros

Quick Info

Library: cckptcor.lib / cckptcor.dll

Header: windef.ch

See also

LOBYTE

Example

 

#INCLUDE "CockpitCoreLibs.ch"

#INCLUDE "windef.ch"

 

FUNCTION Main

 

* This will display the value 123

? HIBYTE(123*256+77)

 

RETURN NIL