Porovnávané verzie
porovnané s
Kľúč
- Tento riadok sa pridal
- Riadok je odstránený.
- Formátovanie sa zmenilo.
DELAY action
Function
Delaying the script execution for a time.
Declaration
| Blok kódu | ||||
|---|---|---|---|---|
| ||||
DELAY expression [s] |
or
| Blok kódu | ||||
|---|---|---|---|---|
| ||||
DELAY expression [ms] |
Parameters
| expression | in | Expressions of REAL type. |
Description
Execution of action is delayed for a time given by the parameter expression. In the first case, the value of the expression is given in seconds, in the second one, it is given in milliseconds.
Example
| Blok kódu | ||||
|---|---|---|---|---|
| ||||
BEGIN INT _a, _i _a := 2 FOR _i=1 TO 5 DO_LOOP _a := _a + 3 MESSAGE "_a = " + %IToStr(_a) ON srvskol1v.HIP DELAY 3[s] END_LOOP END |
Note
Although the declaration rules of actions imply that square brackets [ ] show the optional part of declaration, in this case the brackets defines respective time units, i.e. [s] or [ms].