mmtmalone
4th February 2014, 20:30
I am creating a csv file from a report in baan. The problem I'm having is with the dollar value. If the dollar value is $475.00, when I open the csv file, it contains 475
It seems to drop the .00. Is there a way to get the .00 to display without having to format the column after opening because the file goes straight through for further processing without it being opened?

Han Brinkman
4th February 2014, 22:52
Did you check the sprintf function?

mmtmalone
4th February 2014, 23:58
Could I use the format as:
string result(15)
result = sprintf$("%a",tfgld106.amnt)

lbencic
5th February 2014, 00:58
Do you open the csv file in Excel or as a text file? I think as a text file it will have whatever you wrote to it. Once you open it in excel it will strip off leading zeros, remove decimal points etc.

mmtmalone
5th February 2014, 01:28
The user opens the file in Excel.

bhushanchanda
5th February 2014, 06:20
Hi,

They can then select the column and do a Ctrl+Shift+1 to add those 00. Also check if this thread. (http://www.baanboard.com/baanboard/showthread.php?t=64653) can help