in this method
if i enter 1234567890 I get 12-34-567-89W0Code:private string ConvertLSDToPrettyPrintLocation(string location) { string prettyLocation = string.Format("{0:##-00-000-00W0}", Convert.ToInt32(location)); return (prettyLocation); }
but when I enter 12345678 i get -12-345-67W8 and I want 12-345-67W8
How do I get rid of the leading - when there are only 8 numbers entered
Thank you for any advice
Scott




Reply With Quote