Advertisement
2002ASP Miscellaneous #1418

Pause

Tired of having to pause in increments of 1 second? This coding will pauses based on MILLIseconds using the GetTickCount function.

AI

AIサマリー: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

ソースコード
original-source
Sub Pause (ByVal hInterval As Double)
Dim hCurrent As Long
hInterval = hInterval * 1000
hCurrent = GetTickCount()
Do While GetTickCount() - hCurrent < hInterval
  DoEvents
Loop
End Sub
オリジナルのコメント (3)
Wayback Machineから復元