Advertisement
2002VB Math/ Dates #17399

A Super Easy Delay Timer

A delay timer so easy, this paragraph is longer. I had to submit this easy code because it is not on this website. Uses no API, and it is very handy!!

AI

Ringkasan 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.

Kode Sumber
original-source
Private Sub Command1_Click()
 Dim Start As Long
 Start = Timer
  
  Do While Timer < Start + 3 'a 3 second delay (Change to any numer you want)
   DoEvents  ' Yield to other processes.
  Loop
  
 Beep
 
End Sub
Komentar Asli (3)
Dipulihkan dari Wayback Machine