There's a few different ways of achieving this, but I'd use printf.
printf( "%-10s", "hello" );
will print "hello", left justified in a field 10 chars wide.
printf( "%10d", 777);
will print 777, right justified in a field also 10 chars wide.
In reply to Re: Aligning Text
by FunkyMonk
in thread Aligning Text
by Dr.Avocado
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |