Problem refreshing a value with more than one digits.

You can do this many ways:-

  1. Always print two blank spaces after each print.
  2. Look at the size of the number and print no, one or two spaces after you print.
  3. Convert into a string and pad out before or after the digits with spaces, then print the string
  4. Read back the cursor position after you print then print spaces until it gets to the end of the field.