Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

For Loop Question

Status
Not open for further replies.

twooly

MIS
Feb 22, 2004
122
0
0
US
I have a for loop question on how to move to the next item if a condition is meant (Not Exit the for just move to the next item)

Code:
For i to Ubount(array)
    if something = something Then 
                <----- Go to the next item in the for ----->
    End if
    Do other stuff here if condition isn't meant.
Next

Thanks
 
I went a different route to get my answer so you can ignore this.
 
Uh... if i read correctly; why dont' you simply inverse your loops to:

For i to Ubount(array)
if something <> something Then

Do other stuff here if condition IS met.
End if
<----- Go to the next item in the for ----->
Next

[yinyang] Tranpkp [pc2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top