◄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.