DELAY PROCESS

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 3


DELAY PROCESS (process; duration)

ParameterTypeDescription
processNumberProcess number
durationNumberDuration expressed in ticks

Description

DELAY PROCESS delays the execution of a process for a number of ticks (1 tick = 1/60th of a second). During this period, process does not take any processing time. Even though the execution of a process may be delayed, it is still in memory.

If the process is already delayed, this command delays it again. The parameter duration is not added to the time remaining, but replaces it. Therefore pass zero (0) for duration if you no longer want to delay a process.

If the process does not exist, the command does nothing.

Warning: DELAY PROCESS has no effect on the Kernel processes (all environments), including the User/Custom Menus process.

Tip: To "delay" the User/Custom Menus process, write a small "waiting" subroutine that loops measuring the elasped time using Current time, or Tickcount or Milliseconds). For example, if you want to display, for a given time period, a message in a window that you open and close for this purpose.

Note: You cannot use this command to assign a stored procedure on the server machine from a client machine (process<0).

Examples

1. See example in Record Locking.

2. See example for the command Process number.

See Also

HIDE PROCESS, PAUSE PROCESS.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next