Bug report for String (Read new post)

I did encounter a strange behaver when i did a loop the code was this

  while(i<11)
  {
myGLCD.fillRect((21*i)+3, 250, (21*i)+23, 290);
myGLCD.print((String)(21*i)+3, LEFT, i*20);

I'm not surprised you encountered strange behaviour. That won't compile, it's an incomplete code block, with an iterator variable that never changes and further more is never defined (along with other variables).

Also, the String object is the biggest cause of headaches and nightmares in existance on the Arduino. Its use should be avoided whenever possible.

Read new post. It did post before I was finish writing everything.

ehel:
Read new post. It did post before I was finish writing everything.

Then edit your original post instead of wasting peoples' times with multiple threads.