User Profile
Collapse
-
And no, my problem was much more difficult. I just don't expect more experienced people to do my homework for me :) (though, answering a question here and there has been invaluable). -
Here's the list of new commands.
From M$:
"Continue Statement
Visual Basic now supplies a Continue statement, which immediately skips to the next iteration of a Do, For, or While loop. "Leave a comment:
-
VB 2005 is the first ver. to incorporate it (that I know of)....Leave a comment:
-
Summing Odds and Evens
Not to step on anyone, but in reference to this thread on summing odds and evens, why not just use the 'continue' statement? So adding up the odds would look something like this:
-on some event-
...Code:Dim counter, sum As Short sum = 0 For counter = 1 To 99 If counter Mod 2 = 0 Then Continue For sum += counter Next lblOdd.TextLast edited by Killer42; Apr 6 '07, 11:03 PM. Reason: Please use [CODE]...[/CODE] tags around your code.
No activity results to display
Show More
Leave a comment: