Remove the last chr(13) & chr(10) from a string
Hello, all.
I'm trying to get confirmation files to upload to Amazon for their "Charge When Ship" program. I've got the file creating as it should be with one minor exception.
I'm setting a variable, giving it the header column information and ending that with chr(13) & chr(10); then I'm looping through a query to add the information, each iteration tacks chr(13) & chr(10) to the end of it; then I'm taking that variable and writing the data to a file using CFFILE.
But I think that the last chr(13) & chr(10) is causing Amazon servers to think there's one more line of information than there really is, and it's erroring.
Can anyone tell me how to remove that last chr(13) & chr(10) from the variable before writing it to file?
Thanks,
^_^
