Previous: Succ function To the Table of Content Next: SwapArgs procedure

- 4.62.2.87 -
Standard Units
System Unit
System Unit Procedures and Functions

Swap function

Targets: MS-DOS, OS/2, Win32


System Unit

Swaps the high- and low-order bytes of the argument.

Declaration:
function Swap(X: SmallInt): SmallInt;
function Swap(X: Longint): Longint;
Example:
 n := Swap($1234);  // n = $3412



Previous: Succ function To the Table of Content Next: SwapArgs procedure
Succ function Table of Content SwapArgs procedure

- 4.62.2.87 -