[Gambas-user] Writing a text file from the contents of a text area

2013-12-16 Thread John Rose
Tobias, Thanks for your useful coding snippets. It would be good to put these into the Gambas online documentation. This might save the same questions being repeatedly asked in this mailing list! -- Regards, John -- R

Re: [Gambas-user] Writing a text file from the contents of a text area

2013-12-15 Thread Tobias Boege
On Sun, 15 Dec 2013, John Rose wrote: > Bill, > > The textarea control (i.e. as you see it on the form) has a number > of lines. But I'm also interested in an example for a textarea string > having a "number of lines" (i.e. it > contains \n escape characters). Also, I'm interested in an example w

Re: [Gambas-user] Writing a text file from the contents of a text area

2013-12-15 Thread Ricardo Díaz Martín
Bill, take a look to gambas documentation for the easy way to save a string to a text file. http://gambasdoc.org/help/comp/gb/file/save?v3 Regards, Ricardo Diaz 2013/12/15 John Rose > Bill, > > The textarea control (i.e. as you see it on the form) has a number > of lines. But I'm also interes

[Gambas-user] Writing a text file from the contents of a text area

2013-12-15 Thread John Rose
Bill, The textarea control (i.e. as you see it on the form) has a number of lines. But I'm also interested in an example for a textarea string having a "number of lines" (i.e. it contains \n escape characters). Also, I'm interested in an example where a string is repeatedly presented (with diffe

Re: [Gambas-user] Writing a text file from the contents of a text area

2013-12-14 Thread Bruce
On Sat, 2013-12-14 at 11:53 +, John Rose wrote: > I have a TextArea containing a number of lines. I'm confused by the > multiplicity of variants of the Open command. Can someone direct me to > an example of this? I've already failed to find such an example in the > Gambas online documentatio

[Gambas-user] Writing a text file from the contents of a text area

2013-12-14 Thread bill-lancaster
You could try File.Save("~/test.txt", TextArea1.Text) Although this doesn't answer your question about the OPEN statement -- View this message in context: http://gambas.8142.n7.nabble.com/Writing-a-text-file-from-the-contents-of-a-text-area-tp44675p44676.html Sent from the gambas-user mail

[Gambas-user] Writing a text file from the contents of a text area

2013-12-14 Thread John Rose
I have a TextArea containing a number of lines. I'm confused by the multiplicity of variants of the Open command. Can someone direct me to an example of this? I've already failed to find such an example in the Gambas online documentation. -- Regards, John -