这个程序那里有问题,怎么运行进入了死循环?
Private SubForm_Click()
FontSize = 12
Print"现在输出第一行"
Print"等待5秒钟..."
delayloop 5
Print
Print"输出第二行"
Print"等待10秒钟"
Call delayloop(10)
Print
Print"输出第三行"
End Sub
Public Subdelayloop(delaytime)
Const secondinday =24& * 60& * 60&
loopfinish = Timer +delaytime
If loopfinish >secondsinday Then
loopfinish = loopfinish - secondinday
Do While Timer > loopfinish
Loop
End If
Do While Timer <loopfinish
Loop
End Sub
Private SubForm_Click()
FontSize = 12
Print"现在输出第一行"
Print"等待5秒钟..."
delayloop 5
Print"输出第二行"
Print"等待10秒钟"
Call delayloop(10)
Print"输出第三行"
End Sub
Public Subdelayloop(delaytime)
Const secondinday =24& * 60& * 60&
loopfinish = Timer +delaytime
If loopfinish >secondsinday Then
loopfinish = loopfinish - secondinday
Do While Timer > loopfinish
Loop
End If
Do While Timer <loopfinish
Loop
End Sub