LoWord Procedure

Version 5

Returns or sets the low word of a given double word. If the last parameter, lValue, is missing, then it returns the low word of a given double word. Otherwise, it sets low word of given double word to (the word value of) lValue.

Syntax

[ dwValue = ] LoWord (dw, [lValue])

The LoWord procedure syntax has the following parts:

 

Name

Type

Description

dwValue

DWord

The low word of a given dword, dw if lValue is missing,else input dword with given new high word in lValue.

dw

DWord

Input value

lValue

Long

If it is not 0x10000, the default value, then low word of input value is replaced by the low word of lValue.

Comments

 

Example

 

print using "X"; LoWord(0x5000064)        ! prints 64

print using "X"; LoWord(0x5000064, 0x700) ! prints 5000700

See Also

 

Bit

HiWord

HiByte

LoByte