Page 1 of 1

Numeric format display without separators

Posted: Thu Jun 26, 2008 10:10 pm
by ssdev23
Hi All,
Need your thoughts about this please..
On a data band footer BeforePrintEvent I've used this:

varAmt = Format("{0:N3}", varSumOfAmt)

to assign the value of Amt in String where decimal places is being formatted (as 2 or 3 ,4 and so on), but this returns a string value with the separators "." and ","

is there a way to lose it off? (programmatically)

Many thanks!

Numeric format display without separators

Posted: Thu Jun 26, 2008 10:13 pm
by ssdev23
And oh sorry i didn't mean to lose the decimal point "."
just the "," separator ie. in 123,456.00 it should be 123456.00

and note that i need the this Format("{0:N3}", varSumAmt) code to format the decimal place value.

Many thanks!

Numeric format display without separators

Posted: Fri Jun 27, 2008 4:21 am
by Edward
Hello.

Please add the following method in the end of that expression:

.Replace(",", "")

Thank you.

Numeric format display without separators

Posted: Fri Jun 27, 2008 9:57 pm
by ssdev23
Yeah, the Replace method in C# will really work.

Thanks Edward!!!

Numeric format display without separators

Posted: Mon Jun 30, 2008 2:30 am
by Edward
You are welcome.

Please let us know if any help is required.

Thank you.