Help needed
Posted: Fri Sep 15, 2017 9:05 pm
I have a program almost ready to post. One problem I can't solve. I want to save the contents of a textbox to a file.
How do I extract the text from the textbox into a variable?
I create a textbox
c = #.textbox
c.edit = 1 'text box is an editable text field for text input;
c.height = 400
multi = 1
The user enters some note text. When they press Save, I call
k = "Notes.txt"
#.writetext(k,c)
That produces an error, since c is an object, not a string. How do I get the string the user entered into object c, to save into the file "Notes.txt"
How do I extract the text from the textbox into a variable?
I create a textbox
c = #.textbox
c.edit = 1 'text box is an editable text field for text input;
c.height = 400
multi = 1
The user enters some note text. When they press Save, I call
k = "Notes.txt"
#.writetext(k,c)
That produces an error, since c is an object, not a string. How do I get the string the user entered into object c, to save into the file "Notes.txt"