Show: Delphi C++
Display Preferences

System.Swap

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Swap(X: Integer): Integer;

Properties

Type Visibility Source Unit Parent
function public System.pas System System

Description

Exchanges the high-order byte with the low-order byte of a 16-bit integral value (word).

In Delphi code, Swap exchanges the high-order byte with the low-order byte of the argument, that is, byte 1 with byte 0. If the argument is a 32-bit value then byte 3 and byte 2 are unaffected.

Note: This is provided for backward compatibility only.

See Also

Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance