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:
Do While Not EOF(1) Line Input #1, strReadLine If InStr(blah blah) Then 'Do some stuff End If If InStr(other blah blah) Then 'Go to next Line End If Loop




Reply With Quote