HiDWord Procedure

Version 5

Returns or sets the high double word(4 bytes) of a given unsigned 8 byte word. If the last parameter, dlValue, is missing, then it returns the high double word of the input 8 byte word. Otherwise, the high double word of input value, ddw, is set to the high double word of dlValue.

Syntax

[ ddwValue = ] HiDWord (ddw, [dlValue])

The HiDWord procedure syntax has the following parts:

 

Name

Type

Description

ddwValue

DDWord

Return value: the high double word of a given 8 byte word, ddw if dlValue is missin, otherwise the high double word of input value, ddw, is replaced by the high double word of dlValue.

ddw

DDWord

Input value- an unsigned 8 byte word

dlValue

DLong

If it is not the default value, 0x100000000, then the high double word of input value, ddw, is set to the high double word of dlValue.

Comments

 

Example

 

print Using "X"; HiDWord(0x1FFFFFFF55000064)             ! prints 1FFFFFFF

print Using "X"; HiDWord(0x1FFFFFFF55000064, 0x70707070) ! prints 7070707055000064

See Also

 

Bit

 HiWord

LoWord

HiByte

LoByte

LoDWord