SaveSEtting MultiLine Textbox-VBForums
Results 1 to 5 of 5

Thread: SaveSEtting MultiLine Textbox

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2012
    Posts
    7

    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

  2. #2
    PowerPoster
    Join Date
    Jan 2008
    Posts
    8,907

    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 for demonstration purposes only and is not intended to be the solution to your request nor do I claim that it is. If you find that it is useful then it is entirely up to you to make whatever necessary changes you feel are adequate for your purposes.

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2012
    Posts
    7

    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

  4. #4
    PowerPoster
    Join Date
    Jan 2008
    Posts
    8,907

    Re: SaveSEtting MultiLine Textbox

    Don't you mean .WriteAll?


    Anything I post is an example for demonstration purposes only and is not intended to be the solution to your request nor do I claim that it is. If you find that it is useful then it is entirely up to you to make whatever necessary changes you feel are adequate for your purposes.

  5. #5

    Thread Starter
    New Member
    Join Date
    Apr 2012
    Posts
    7

    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
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.