S
Saul
Hi all,
I have what I think is a very simple problem but I seem to be struggling to
find an elegant solution to it.
I have a value inside a double variable, and I want to display this in a
textbox but format it to be "0.00"
eg
1 = "1.00"
10.5 = "10.50"
0.25 = "0.25"
0.3333 = "0.33"
I would normally use the format function, but it doesn't seem to be
supported in CF. I use VB, so if you can, please give code in VB. I'm fairly
sure this can be done in one line of code.
Thanks in advance,
Saul
I have what I think is a very simple problem but I seem to be struggling to
find an elegant solution to it.
I have a value inside a double variable, and I want to display this in a
textbox but format it to be "0.00"
eg
1 = "1.00"
10.5 = "10.50"
0.25 = "0.25"
0.3333 = "0.33"
I would normally use the format function, but it doesn't seem to be
supported in CF. I use VB, so if you can, please give code in VB. I'm fairly
sure this can be done in one line of code.
Thanks in advance,
Saul