RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.Swap Function

Exchanges high order byte with the low order byte of an integer or word.

Pascal
procedure Swap(X);
C++
Swap( X);

System

In Delphi code, Swap exchanges the high-order bytes with the low-order bytes of the argument. X is an expression of type SmallInt, as a 16-bit value, or Word. This is provided for backward compatibility only. 

 

Hi 

Lo

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!