Click or drag to resize

SwapLong Function

X#
Exchange the right and left halves of a long integer.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.21
Syntax
 FUNCTION SwapLong(
	liSwap AS LONG
) AS LONG
Request Example View Source

Parameters

liSwap
Type: Long
The long integer whose words you want to swap.

Return Value

Type: Long
The swapped long integer.
Remarks
SwapLong() swaps the right half of a long integer with the left half of a long integer and returns the result.
The sign may not be preserved after the swap.
Examples
This example uses SwapLong():
X#
1? SwapLong(256000000)        // 1073745730
See Also