-
Is it really so bad?
[Originally posted by KilltheSand]
I'm converting some code into Visual Basic and I read that it was a terrible horrible thing if you modify the conditional variable of a for loop from within the loop.ÿ Is this true?ÿ I have an if within the loop and if it's true I do stuff, then I want to start the loop over.ÿ I would normally just set the variable back to zero before the end if.ÿ Is there any problem with this?ÿ As long as it's not true ever through the whole pass, the loop will terminate.ÿ I have some stuff to do after the loop so I don't want to use any recursion.ÿ Thank you for your comments.
Steve O.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|