Waiting for a delay time
By: Lorenzo Dalla Vecchia Date: 01/05/1998
File:

wait.zip

Size:

0.99 KB

Download now!

The VB Timer function returns the number of seconds from midnight. To wait for a delay time, we store that value and make a infinete loop until the Timer value equalizes the stored value plus a specific number of seconds.

This procedure suspends the execution of the program for a specified number of milliseconds.

Syntax

Wait (milliseconds%)

Parameters

milliseconds: number of milliseconds to stop the execution

Type of data

N/A

Returns

N/A

-

The function is contained in a module. You can cut and paste it in any program of yours.

Click Here!


Visual Basic Programming Zone is a website by Lorenzo Dalla Vecchia.
Webmaster's e-mail: webmaster@vbprogzone.cjb.net
Hosted by InWind: www.inwind.it