HiWord Procedure

Version 5

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

Syntax

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

The HiWord procedure syntax has the following parts:

 

Name

Type

Description

dwValue

DWord

The high 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 high word of input value is replaced by the high word of lValue.

Comments

 

Example

 

print using "X"; HiWord(0x5000064)        ! prints 500

print using "X"; HiWord(0x5000064, 0x700) ! prints 7000064

See Also

 

Bit

LoWord

HiByte

LoByte