(page requirements)

How to put a delay

Looking for a way to delay the execution of your program? Well, delay() function is gone, but Sleep() and SleepEx() Windows functions are here to stay:

For example, if you want to delay your program execution for 10 seconds, call Windows API function Sleep() with 10*1000 (convert seconds to milliseconds):

Sleep( 10000 );

Applicable Keywords : Delphi, Delphi 2.x, Functions, Win32
Previous Tip : To add or not to add
Random Tip : Surprise!
Next Tip : Find out if the CAPS LOCK is on
Copyright © 2009 Chami.com. All Rights Reserved. | Advertise | Created in HTML Kit editor