Results 1 to 5 of 5

Thread: SaveSEtting MultiLine Textbox

Hybrid View

  1. #1
    New Member
    Join Date
    Apr 12
    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 08
    Posts
    6,886

    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?
    The better the information you give to begin with and the sooner you reply the sooner you will get help and get your problem resolved


    When I was young and in my prime I used to program all the time but now I'm old and getting gray I only program once a day

  3. #3
    New Member
    Join Date
    Apr 12
    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 08
    Posts
    6,886

    Re: SaveSEtting MultiLine Textbox

    Don't you mean .WriteAll?
    The better the information you give to begin with and the sooner you reply the sooner you will get help and get your problem resolved


    When I was young and in my prime I used to program all the time but now I'm old and getting gray I only program once a day

  5. #5
    New Member
    Join Date
    Apr 12
    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
  •