String.Format("--{0,10}--", "test");
Which spits out:
-- test--
I made an order number at least six digits like so:
string foo = String.Format("{0,10}", row["OrderNumber"].ToString()).Replace(" ","0");
As we are discussing string manipulations, please see:
No comments:
Post a Comment