On Wed, Feb 6, 2013 at 10:40 AM, Jeppe Græsdal Johansen <jjohan07 at student.aau.dk> wrote: > function TPNGProcessor.SwapLong( const aValue: Cardinal ): Cardinal; > begin > result := BeToN(aValue); > end; Thanks, it works! There are so many functions in FPC libraries which I don't know anything about. This was one of them. Regards, Juha