Thanks for reply. I now realised that i used wrong library. I'll learn bit operators, thanks for advice. Sebastijan