Text Alignment in String

I'm currently working on aligning a string such that each row has multiple fields.

Example/

Row 1: Cats 35 23
Row 2: dogs 0 4
Row 3: Mouse 20 3

I was able to align them perfectly in the simulator using multiple "\t" (tabs). However, when I built it for my device and tested it, the indenting was totally off. I was wondering if I was doing something wrong.

Here is my code:

1
2
local inputString = "Cats\t\t35\t23\ndogs\t\t0\t4\nMouse\t20\t3\n"
scrollBox:replaceLine(inputString, 85, 70)
views:1220 update:2011/9/30 9:15:39
corona forums © 2003-2011