save textbox to file using a button

Hi 

I am new to Corona and I’ve been searching the forums for an answer.  I would like to have a newTextBox and then save the text to a file or submit as a post to a website.

I can create the nextBox and the button, but how do I tie them together?

Thanks

Hello, Search up “loading and saving files CORONA SDK” and you should you want… Although since your new it might be pretty hard…

Good Luck!

So - I can save stuff o a file (should have mentioned that), but I don’t know how to save the textBox to a file with a button.

The textBox object has a member called .text that holds the string.  So lets say you have a field named “nameTextField”, you could do:

print( nameTextField.text ) – access the value of the text field.

Your button handler code can grab the value, and then save it.

Rob

Hello, Search up “loading and saving files CORONA SDK” and you should you want… Although since your new it might be pretty hard…

Good Luck!

So - I can save stuff o a file (should have mentioned that), but I don’t know how to save the textBox to a file with a button.

The textBox object has a member called .text that holds the string.  So lets say you have a field named “nameTextField”, you could do:

print( nameTextField.text ) – access the value of the text field.

Your button handler code can grab the value, and then save it.

Rob