Results 1 to 15 of 15

Thread: For...Next jump syntax?(RESOLVED)

Threaded View

  1. #1

    Thread Starter
    Addicted Member JVRudnick's Avatar
    Join Date
    Oct 2001
    Location
    Toronto, Canada
    Posts
    135

    For...Next jump syntax?(RESOLVED)

    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..

    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
    When I run this, my error is "Compile error : next without for"

    ???

    Jim
    Last edited by JVRudnick; Sep 17th, 2004 at 11:03 AM.
    Jim Rudnick
    MCSD
    KKT INTERACTIVE
    www.kkti.com

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