I totally don’t get it , why i got a Additional information: Bad file name or number when Button1 was clicked in VS2008SP1 ?
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim i As Integer = 0
Do
i += 1
Print(i)
If i >= 10 Then
Print "I is above 10"
ElseIf i >= 20 Then
Exit Do
End If
Loop While (i <= 30)
End Sub
Don’t use Print().
Print()function is used to write data into a file. To print number in debug window useDebug.Print()method.