Calls a function repeatedly, or evaluates an expression after a specified number of milliseconds has elapsed.
Syntax
HRESULT setInterval( BSTR expression, long msec, VARIANT *language, long *timerID );
Parameters
- expression
- String (BSTR) that specifies the code to be executed repeatedly at the specified interval.
- msec
- Long variable returning a numeric value or numeric string that specifies the time-out interval, in milliseconds.
- language
- Address of a VARIANT structure that specifies the language that the code is executed in.
- timerID
- Address of a long variable that receives a time-out identifier. This identifier is used only to cancel the evaluation with the clearInterval method.
Return Value
Returns S_OK if successful, or an error code otherwise.
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0
See Also