> Well, you should probably mention that this replacement solution is not > portable to big endian platforms / targets. > > Tomas If one want to write portable code, what would be best, or would both work on a big endian platform. Carsten var b:byte; i:LongInt; b := i and 255; b:= i mod 256;