On Apr 4, 11:42 am, MrAsm <m...@usa.comwrote:
On Wed, 4 Apr 2007 16:20:16 +0000 (UTC), Frank Werner
<frank.werner-krippend...@franke.comwrote:
Hello MrAsm,
this should help:
Thank you very much for your code, Frank.
MrAsm
Why not use the String.Format? It's what it is designed for:
Console.WriteLine(String.Format({0,5}, 77));
This is similar to the C printf method. The {0,5} is a placeholder.
The 0 indicating it is the first argument in the list of items to be
formatted (77 in this case). The ,5 indicates that the field is
padded to 5 characters, right justified. For left justified you would
use -5. You can also add an option format string after the 5. See
the following link for more information:
http://msdn2.microsoft.com/en-us/library/fht0f5be.aspx