Ce16(), Ce32()

Ce16() converts a 16 Bit Integer, Ce32() a 32 Bit Integer, from Littleendian to Bigendian and vice versa. The byte order is reversed. Same function as the object method .Reverse for data type Integer, Word and Long (see typkonvertierung). Syntax: word = Ce16(a as word)
Syntax: long = Ce32(a as long)

Example:

  dim a as word
  dim b as long
  a=0x1122
  b=0x11223344
  a = Ce16(a)    ' Output: 0x2211
  b = Ce32(b)    ' Output: 0x44332211