Documentation here: http://lazarus-ccr.sourceforge.net/docs/rtl/sysutils/comparemem.html says that the function returns <0, 0 or >0 while actually it returns a Boolean. Juha