qp.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Swap Function
  ◄Summary► ◄Details► ◄Example►                                   ◄Back►
 
  Argument
 
    number         Integer or word expression
 
  Returns
 
    <same type>    Value formed by swapping high and low bytes of the
                   number
 
  Description
 
    The Swap function returns a value formed from the argument by
    exchanging the high-order (most significant) byte with the
    low-order (least significant) byte.
 
    The argument is one of the two 16-bit types, either integer or word.
    Swap can be applied to Byte, LongInt, or ShortInt arguments, but
    the return value may not be useful.