Hello!
I have the following Input for my TextField:
{Format("{0:#}", double.Parse(reportData.ct_nr_cyc_lc_cstm_res.Value))}
If my Value is for example "635" everything works fine, but if my Value is "0" only a whitespace is represented.
What could be the problem here?
Thanks for your help!
Double Parse fails with Input "0"
-
- Posts: 2
- Joined: Tue May 08, 2018 12:17 pm
Re: Double Parse fails with Input "0"
Hi,
thats not a Stimulsoft problem.
If I have the code then the result is also an empty string. It's the format with the #. If you have the following code, you will get what you expected: or simple
So with your code it will be:
thats not a Stimulsoft problem.
If I have the code
Code: Select all
string.Format("{0:#}", 0)
Code: Select all
string.Format("{0:0}", 0)
Code: Select all
string.Format("{0}", 0)
Code: Select all
{Format("{0}", double.Parse(reportData.ct_nr_cyc_lc_cstm_res.Value))}
-
- Posts: 6247
- Joined: Tue Mar 20, 2018 5:34 am
Re: Double Parse fails with Input "0"
Hello,
Thank you for the information.
Thank you for the information.