iValue.ToString("###########0",CultureInfo::CurrentUICulture));

  • Thread starter Thread starter Olaf Baeyens
  • Start date Start date
O

Olaf Baeyens

A question: (C#, C++)

If I use iValue.ToString("000000000000",CultureInfo::CurrentUICulture));
The I get a string with a fixed lengt if format: "000000542663"

But since I want the leading "0" gone, but still have the fixed string
length I replaced it with this:
iValue.ToString("###########0",CultureInfo::CurrentUICulture));

But to my suprise I get "542663" while I expected : " 542663" (note the
missing spaces)

Can someone tell me how to keep these leading spaces fixed because I need
them to create a grid of numbers as text output.
I cannot find it in the documentation.
 
Back
Top