Is it possible to write an infinite for loop in VB.NET?
If so, what is the syntax?
Is it possible to write an infinite for loop in VB.NET?
If so, what is the syntax?
For i as Integer = 0 To 1 Step 0
If that's not hacky enough, can also write:
For i As Integer = 0 To 2
i -= 1
Next
or
while (true)
end while
ok, proper For answer:
Dim InfiniteLoop as Boolean = true;
For i = 1 to 45687894
If i = 45687893 And InfiniteLoop = true Then i = 1
End For