Well if you look at the AnsiString reference there is an
operator that will allow the conversion of an int to a AnsiString so
that is why it will compile and as for calling repaint, you are correct
it should repaint when it is updated but it is not doing so...