Data cells to file

With aid here and reading example code and other references, I’ve learned how to grab text from a file, parse it and put into a table.

Now I have the problem of exporting the data back to a text file after the user has made changes.

I’ve written some code to handle this, but when I run it the text does not output in a format I recognise…anyone know what could be causing this?


[This script was automatically tagged for color coded syntax by Convert Script to Markup Code]

What does it look like? I also notice that your are getting the data columns, not the data rows. That could be a problem. I also don’t see in your code where you define the variables idTotal or theDataSource. Are those properties of your script?

Sorry for the confusion. idTotal is a property variable, and at the time of that post, theDataSource was a property of the script as well.

The result text file has each contents of data cell “-” call outputting this

http://s93769967.onlinehome.us/output.jpg

I found the solution, and it was an easy fix (that took me hours to discover, doh!).

All that was required was to to say contents [] as string, so simple, yet so frustrating.

Thank you for your help Krioni, I wouldnt have been able to stumble onto the solution without your advice.


[This script was automatically tagged for color coded syntax by Convert Script to Markup Code]