DELAY - delay execution for N seconds.

DeLaY(I) returns I

"sleeps" for I seconds. DeLaY() is primarily intended for use inside EXEC command files, in statements like

$*$set junk = delay(15)

However, it can also be used in IF and EVAL commands. For example, if you have a DRUN that needs a pause, you could use

eval delay(15)

You can press BREAK to terminate the delay prematurely; in this case, DeLaY() returns the approximate number of seconds left in the originally scheduled delay. If you do not interrupt the delay (i.e. if DeLaY() waits the full time specified), the function returns zero.

Copyright © 1996, Thinkage Ltd.