wait until, wait until countdown

Prev Next

Function Names

wait until, wait until countdown

Description

The program will sleep until a specific target date (and time) has been reached. 00:00:00 is assumed if no time is specified. This feature is useful to schedule tasks at fixed time intervals. Example: Scheduling database downloads every morning at 07:30, and the data is avaiable when you are in the office. The difference to sleep until() and sleep until countdown() is that user interaction (any key pressed) stops waiting and execution continues immediately.

Call as: procedure or function

Parameter count

1

Parameters

No.TypeDescription
1
input
date Target date / time

Waiting takes place until specified date and time has been reached

2
input
string Prompt

Prompts a message that waiting is in progress

Return value

TypeDescription
string Time in seconds

Entered character, or blank string if no key has been pressed to stop waiting.

Examples

               wait until countdown ("07:30", "Wait until 07:30. Press any key to coninue immediately");

Output

Software will display a down-counting number on the same row

See also

wait
wait countdown
sleep until
sleep until countdown
input quick