LOBYTE - Extract the high order byte from a word

Top  Previous  Next

Syntax

<byteResult> := LOBYTE( <wordValue> )

Parameters

<wordValue>

 

The WORD value to extract the low order BYTE from.

Resulting Code

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

Description

LOBYTE retrieves the low order BYTE from the  WORD<wordValue>.

Classification

Core

Category

Value analysis macros

Quick Info

Library: cckptcor.lib / cckptcor.dll

Header: windef.ch

See also

HIBYTE

Example

 

#INCLUDE "CockpitCoreLibs.ch"

#INCLUDE "windef.ch"

 

FUNCTION Main

 

* This will display the value 77

? LOBYTE(123*256+77)

 

RETURN NIL