[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Swap                     Swaps the High and Low Bytes of an Integer

Swap(IVal : Integer) : Integer;  [TP]

    Swap the high-order (upper) and low-order (lower) bytes of IVal.

            IVal    A variable of type Integer.

  -------------------------------- Example ---------------------------------

           I := Swap(19);           { I = 4864 }
           I := Swap(8192);         { I =   32 }
           I := Swap($9211);        { I = 4498 = $1192 }

See Also: Hi Lo
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson