Results 1 to 3 of 3

Thread: Can anyone help me out?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879
    Hey sup? I have a string with over 90 lines and I want to retrieve a whole line from this string! Can anyone help me do that? Don't forget, I have had a few codes before that work properly but if there's a line and then a double space and then there's another line, the code stops to work properly!
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


  2. #2
    Addicted Member
    Join Date
    Jun 1999
    Location
    Los Angeles
    Posts
    186
    What is exactly your line delimitter?


    André

  3. #3
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    If in your string it's already separated by line,
    just put it in a .txt file, and then loop thru the file
    line by line.

    Code:
    Dim free
    free=FreeFile
    Open "c:\temp.txt" FOR Output As #free 
        Print #free,yourVariable
    Close # free
    
    Open "c:\temp.txt" FOR Input As #free 
    Do until strLine=desiredLine
         Line Input #free,strLine
    Loop
    Close #free

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