- John Vanleeuwe
- PowerBuilder
- Thursday, 25 July 2019 04:22 PM UTC
Hi all,
i am trying to implement the saveasasciiformatted function.
we need to export the contents of our datawindow to a ; separated file.
this works just fine, except for the decimals.
we would like to force the decimals to be exported as 9999999999.99999 where the . is the decimal separator.
We are located in Europe so our users are using the , comma as decimal separator.
So in the datawindow we "see" the value
this should be exported as 123456789.12345
this should be exported as 1234.00000
this should be exported as 0.123
Bare in mind , i don't want to be reading and processing line by line, unless there's no alternative.
i found the dw_1.SetFormat() function which allows me to change the format just before the .saveasciiformattedtext function call.
Big question is now , to which format i must set my decimal columns to obtain what i want please ?
TIA
John
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.