Are you using $chr(32) or $chr(160) as you space definition? I never get 32 to work. 160 seems to work. My script does basically the same thing. I just created a sub process that evaluates the length of the variable and if its supposed to be lets say 10 characters and its only 7, I use if statements to append $+ $chr(160) to make up the difference until my variable is Length 10.


Albert Ramnath
WinChat IIRC
http://routing.winchat.net