Results 1 to 11 of 11

Thread: If statement [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Location
    Chicago
    Posts
    136

    If statement [RESOLVED]

    I have a loop that goes through a logfile line by line and does certain events if certain strings are in that line. My question is how do I get it to skip to the next line if it contains a certain string? I'm trying to use If statements like below, I'm just not sure how to do it.



    VB Code:
    1. Do While Not EOF(1)
    2.     Line Input #1, strReadLine
    3.  
    4.     If InStr(blah blah) Then
    5.         'Do some stuff
    6.     End If
    7.  
    8.     If InStr(other blah blah) Then
    9.         'Go to next Line
    10.     End If
    11. Loop
    Last edited by bat711; Apr 19th, 2005 at 01:49 PM.

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