可以参考下面的代码计算一下各段代码执行的时间,看哪一段代码慢:
Dim t1 As Date = Date.NowDim Sum As LongFor i As Integer = 1 To 10000000 Sum = Sum + iNextOutput.Show("计算结束, 耗时: " & (Date.Now - t1).TotalSeconds & "秒")
另外可以看看:http://www.foxtable.com/webhelp/topics/2225.htm