I am having trouble figuring out how to end a while statement in a vb script. Here is what I have:
y = instr(1,strBody,"<")
while y <> 0 do
z = instr(y,strBody,">")
hs.writelog (log_prefix, "y: " &y& " z: "&z)
y = instr(y+1,strBody,"<")
wend
The log tells me: End of statement expected
Any thoughts?
y = instr(1,strBody,"<")
while y <> 0 do
z = instr(y,strBody,">")
hs.writelog (log_prefix, "y: " &y& " z: "&z)
y = instr(y+1,strBody,"<")
wend
The log tells me: End of statement expected
Any thoughts?
Comment