VB.NET Infinite For Loop

前端 未结 5 775

Is it possible to write an infinite for loop in VB.NET?

If so, what is the syntax?

5条回答
  •  故里飘歌
    2021-01-29 08:25

    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
    

提交回复
热议问题