Results 1 to 3 of 3

Thread: Rich Text Boxes & Files

  1. #1

    Thread Starter
    Member
    Join Date
    May 1999
    Location
    San Jose, CA, USA
    Posts
    43

    Question

    I need to take apart the text in a richtextbox line by line to put into a file because i need to return line by line.

    doing this:

    write #1, richtextbox.text

    will make a single "entry" to the file... how can i take apart the textbox line by line?
    -_=Progrium=_-
    Progrium Software

    Using: VB 6 Pro

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840

    Code:
    ' Cuts the string into lines in an array
    Dim MyStr as String
    Dim Output() as String
    
    MyStr = Text1.Text
    Output = Split(MyStr, vbCrLf)
    ' Then loop 0 to Ubound(Output) to write to file
    This only works in VB6 though (We just had a similar conversation in another thread )


  3. #3

    Thread Starter
    Member
    Join Date
    May 1999
    Location
    San Jose, CA, USA
    Posts
    43

    Cool

    oh wow! thanks man!
    -_=Progrium=_-
    Progrium Software

    Using: VB 6 Pro

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width