• Welcome to Valhalla Legends Archive.
 

0x65 parsing help

Started by CrAz3D, February 27, 2005, 10:37 PM

Previous topic - Next topic

dxoigmn

Quote from: MyndFyre on February 28, 2005, 06:30 PM
Okay, but what if there is a state change during the loop?  I could see it if the function was declared const, but since it's VB.... I dunno.  Thanks for the clarification though!

You mean something like:


Public Sub Test()
    Dim I as Integer

    For I = 0 to 1
        Debug.Print("I = " & I)
        I = 0
    Next I
End Sub


That would result in an infinite loop.

tA-Kane

Changing your counter variables inside the loop can be dangerous if you don't know what you're doing.

But it's also a very common and useful feature of any half-way decent language.
Macintosh programmer and enthusiast.
Battle.net Bot Programming: http://www.bash.org/?240059
I can write programs. Can you right them?

http://www.clan-mac.com
http://www.eve-online.com