Click or drag to resize

SwapDWord Function

Exchange the right and left halves of a double word.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.2a
Syntax
 FUNCTION SwapDWord(
	dwSwap AS DWORD
) AS DWORD
View Source

Parameters

dwSwap
Type: UInt32
The double word value whose words you want to swap.

Return Value

Type: UInt32
The swapped double word.
Remarks
SwapDWord() swaps the right half of a double word with the left half of a double word and returns the result.  The sign may not be preserved during the swap.
Examples
This example uses SwapDWord():
X#
bHex := 0x23CACE
? SwapDWord(bHex)                // returns 3402498083
See Also