LOWORD - Extract the unsigned low order word from a long value

Top  Previous  Next

Syntax

<wordResult> := LOWORD( <longValue> )

Parameters

<longValue>

 

The LONG value to extract the low order WORD from.

Resulting Code

A call to BitShiftMaskSign using the proper parameters to retrieve the low order word from <longValue>.

Description

LOWORD retrieves the low order WORD from the LONG <longValue>. The extracted value is unsigned. If you want to extract a signed SHORT value, use LOSHORT.

Classification

Core

Category

Value analysis macros

Quick Info

Library: cckptcor.lib / cckptcor.dll

Header: windef.ch

See also

HIWORD, LOSHORT

Example

 

#INCLUDE "CockpitCoreLibs.ch"

#INCLUDE "windef.ch"

 

FUNCTION Main

 

* This will display the value 54321

? LOWORD( 12345*65536 + 54321 )

 

RETURN NIL