Evaluates an expression after a specified number of milliseconds has elapsed.
Syntax
HRESULT setTimeout( 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 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 clearTimeout 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