Previous: 4.67.2.86. Succ function To the Table of Contents Next: 4.67.2.88. SwapArgs procedure
4.67.2.86. Succ function Table of Contents 4.67.2.88. SwapArgs procedure

- 4.67.2.87. -
Table of Contents
4. Standard Units
4.67. System - Built-in routines
4.67.2. System Unit Procedures and Functions
4.67.2.87. Swap function


4.67.2.87. 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: 4.67.2.86. Succ function To the Table of Contents Next: 4.67.2.88. SwapArgs procedure
4.67.2.86. Succ function Table of Contents 4.67.2.88. SwapArgs procedure

- 4.67.2.87. -