-
Apr 30th, 2012, 08:30 AM
#1
Thread Starter
New Member
SaveSEtting MultiLine Textbox
Hello,
i have a multiline textbox, when i do SaveSetting, Get Settin gto File, it only saves the first line of textbox, how can you save all lines.
I am using This Save Method
Code:
Public Sub Save MultilineTextbox5(ByVal FileName As String)
Set strm = fso.CreateTextFile(FileName, True)
With strm
.WriteLine frmMail.Text5.Text
.Close
End With
End Sub
-
Apr 30th, 2012, 10:16 AM
#2
Re: SaveSEtting MultiLine Textbox
Doesn't WriteLine just write a line and not the rest? I don't know this method but is there something like WriteData which would write all the lines?
Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.
-
Apr 30th, 2012, 10:36 AM
#3
Thread Starter
New Member
Re: SaveSEtting MultiLine Textbox
ah here we go, i think what i was looking for was
instead of .readline i needed .ReadlAll
haha thank you for pointing me to the right direction
-
Apr 30th, 2012, 11:09 AM
#4
Re: SaveSEtting MultiLine Textbox
Don't you mean .WriteAll?
Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.
-
Apr 30th, 2012, 11:10 AM
#5
Thread Starter
New Member
Re: SaveSEtting MultiLine Textbox
yes you are right, lol, too much coding, need to take a break
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|