Recommended: Analyzing the application of cache technology in Asp It has been 7 years since ASP was released, and its ASP technology has been quite mature. Since Microsoft launched ASP.NET, it has gradually stopped updating the ASP version. But since there are many people who are still accustomed to using ASP to develop websites, so again, I will take a simple example
Look at the Java code below. The purpose is to not do output when i is 3 and jump to the next loop directly.
| The following is the quoted content: int i = 0; while (i < 5) ...{ i ; if (i == 3) ...{ continue; } System.out.println(I'm not 3, I'm i); // Do something else... } |
However, how should I write it in ASP (VB)? Many people are in trouble. Here, I will give some answers for reference and give me more advice!
| The following is the quoted content: i = 0 Do While (i < 5) If (i <> 3) Then 'MsgBox I'm not 3, I'm & i 'Do something else... End If i = i 1 Loop |
Obviously, the above example will make you laugh.
| The following is the quoted content: i = 0 Do While (i < 5) For j = 1 To 1 If (i = 3) Then Exit For End If 'MsgBox I'm not 3, I'm & i 'Do something else... Next j i = i 1 Loop |
Share: Brief analysis of the asp component-free upload and insertion into the database The following is the referenced content: %Response.Buffer = True Server.ScriptTimeOut=9999999 On Error Resume Next %>