wwEval.EvalTimer

A simple way to fire a timer and execute an expression or code block. Set a delay and specify how often to repeat the timer execution.

You can optionally pass in 3 state values that become available as this.State, this.State1 and this.State2 in the expression passed in.

EvalTimer(lcExpr,lnMilliseconds,lnRepeat,lnMode,lvState, lvState1,lvState2)

Return Value

nothing

Parameters

lcExpr
The code expression or codeblock to execute

lnMilliseconds
Milliseconds to wait before execution or repeat.

lnRepeat
How often to repeat (1*)

lnMode
0* - Expression (EVAL())
1 - Code Block (EXECSCRIPT())

lvState
Optional - state to assign. Accessible as this.State?in expression.

lvState1
Optional - state to assign. Accessible as this.State1

lvState2
Optional - state to assign. Accessible as this.State2

Remarks

This is a static function, not a method of the wwEval class.

Example

*** Delay call THISFORM.Activate to handle focus issues
EvalTimer("this.State.Activate()",700,1,0,THISFORM)

See also:

Class wwEval

© West Wind Technologies, 1996-2019 • Updated: 01/08/16
Comment or report problem with topic