R
Ritu.Chandra.JBS
Hello,
I am facing a strange problem. My application formats a decimal value
to a string something like this.
fprice float;
sPrice String;
fprice = 450.77 // This value actually comes from the database
sPrice = fprice.ToString("C")
sprice after the above transformation looks like "$450.77"
Now because of some application requirements after a while I need to
reformat the string to display "450.77"
However once this format is applied the system does not recognise
sPrice as a string anymore and does not let me use any string function
like 'replace', 'split' etc. It does not even run the GetType method
without an error (though the system still displays sPrice to be a
string)
End result is that I cannot remove this "$" sign from my output.
Would appreciate some pointers.
Thanks
Ritu
I am facing a strange problem. My application formats a decimal value
to a string something like this.
fprice float;
sPrice String;
fprice = 450.77 // This value actually comes from the database
sPrice = fprice.ToString("C")
sprice after the above transformation looks like "$450.77"
Now because of some application requirements after a while I need to
reformat the string to display "450.77"
However once this format is applied the system does not recognise
sPrice as a string anymore and does not let me use any string function
like 'replace', 'split' etc. It does not even run the GetType method
without an error (though the system still displays sPrice to be a
string)
End result is that I cannot remove this "$" sign from my output.
Would appreciate some pointers.
Thanks
Ritu