Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Continue" For Loop?
#1
Yeah i know i know this... but i cannot think at all right now. When you're inside a for loop, and you stumble across a certain event... and you want it to ignore your current variable, and start at the next one... what is the VB code for it? I know in C++ it's 'continue'... but i can't for the life of me think of what the VB6 equivalent is...
Reply
#2
A big fat IF statement or GoTo is all I can think of.

Code:
For I = 1 to 100
If I  37 Then
DoStuff
End If
Next I

Code:
For I = 1 to 100
If I = 37 Then GoTo NextI
DoStuff
NextI:
Next I
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)