It is a little more complicated. Let's say I have these codes: data = 12345; printf("%d",data); // LCD scr displays "12345" data = 9; printf("%d",data); // LCD scr displays: "92345" for the second printf, instead of displaying "9", it diplays "92345". It is hard to calculate how many digit the "data" field has to provide the blank space.This is the reason why I have to clear the entire LCD to get rid of this kind of problems. I thought of keeping an image of the LCD on RAM, but this requires lots of RAM space. Regards, Thomas __________________________________ Do you Yahoo!? Yahoo! Search - Find what you re looking for faster http://search.yahoo.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads