Hi all,
I'm having difficulties figuring this one out. I set up a test file which displays a value of 0, 30, 0 and 0 for the code below. This is what it is suppose to do, except I never write a line to the output when the value = 30 (it never executes the Wscript.echo "write a line to output".
Any idea why this is not working?
thanks.
If colMatches.Count > 0 Then
value = InStr(29, sline, ": 0", VBTextCompare)
Wscript.echo "value is "
Wscript.echo value
If InStr(29, sline, ": 0 ", VBTextCompare) <> 0 Then
Wscript.echo "write a line to output "
f.WriteLine (sline)
End If
End if
I'm having difficulties figuring this one out. I set up a test file which displays a value of 0, 30, 0 and 0 for the code below. This is what it is suppose to do, except I never write a line to the output when the value = 30 (it never executes the Wscript.echo "write a line to output".
Any idea why this is not working?
thanks.
If colMatches.Count > 0 Then
value = InStr(29, sline, ": 0", VBTextCompare)
Wscript.echo "value is "
Wscript.echo value
If InStr(29, sline, ": 0 ", VBTextCompare) <> 0 Then
Wscript.echo "write a line to output "
f.WriteLine (sline)
End If
End if