Option Explicit ' 变量需【强制显式声明】
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Dim n0 As Integer, n1 As Integer
Dim n2 As Integer, A() As String
Private Sub 结果()
Dim i1 As Integer
Text2.Text = ""
For i1 = n1 To n2
Text2.Text = Text2.Text & CStr(A(i1))
If i1 < n2 Then Text2.Text = Text2.Text & Chr(32)
Next
Text3.Text = CStr(n0)
Sleep 500 ' 延时半秒
End Sub
这些代码可以延时一下,但是没有什么作用。因为现代计算机的【cache】足够大,可以把中间过程全部融入,有可能看不到什么数据交换的过程。