09-26-2002
2,
0
Join Date: Sep 2002
Last Activity: 30 September 2002, 5:45 AM EDT
Posts: 2
Thanks Given: 0
Thanked 0 Times in 0 Posts
How to pad spaces
Hello,
I have to write a function to input a Label and a number, and output a line as the following format:
Column 1 to 30: field label, left justified.
Column 31 to 45: A number, right justified.
The middle is padded with space. May I know how can I achieve this? (I don't know how to count the length of the label/number, and how to pad the spaces in between.)
Please help.
Many thanks.
Sarah