pbare
Well Known Member
I am having a problem with a field that I am formatting and displaying on a CSV file
Basically I need to concatenate 2 string fields (JBCD and JBST)
If the combination of JBCDJBST = Alphanumeric - I do nothing and print the value out to the strig
But if the combination of JBCDJBST is Numeric - then I need to do JBCD.JBST.
Everything works great except the fact that if I have a 0 on the end of my string, it is being removed.
eg. 702055420 shows as 702055.42 rather than 702055.420
The only solution that seems to work at the moment is if I concantenate a single quote to my string '702055.420 - the problem is that my users don't want to see this single quote and I don't know how to get the CSV to accept the fact that even though it looks like a number, it is actually a string.
Any thoughts would be appreciated.
Thanks
Basically I need to concatenate 2 string fields (JBCD and JBST)
If the combination of JBCDJBST = Alphanumeric - I do nothing and print the value out to the strig
But if the combination of JBCDJBST is Numeric - then I need to do JBCD.JBST.
Everything works great except the fact that if I have a 0 on the end of my string, it is being removed.
eg. 702055420 shows as 702055.42 rather than 702055.420
The only solution that seems to work at the moment is if I concantenate a single quote to my string '702055.420 - the problem is that my users don't want to see this single quote and I don't know how to get the CSV to accept the fact that even though it looks like a number, it is actually a string.
Any thoughts would be appreciated.
Thanks