Hello all..
working on parsing a large string...and I can't remember the code to test for a certain word in the string, and if it's there, to jump to the next item..
here's the code so far..
When I run this, my error is "Compile error : next without for"Code:For r = 1 To 85 'code snip... ' now test to see if the word transparent is in the next 50 chars... ' set var to the group of 50 chars GROUP = Mid(Text6.Text, lnEndPos, 50) ' DEBUG: show group just grabbed Text13.Text = GROUP ' trap here... FOUNDIT = InStr(Text13.Text, "transparent") If FOUNDIT > 0 Then Text14.Text = FOUNDIT ' found transparent so jump to next iteration Next r End If 'code snip here where I parse the string and then save it in a list next r
???
Jim




Reply With Quote