ISDBApplication::CreateTimer: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{MethodDeclaration|SDBApplication|ISDBApplication|Function CreateTimer(Interval As Long) As [[ | {{MethodDeclaration|SDBApplication|ISDBApplication|Function CreateTimer(Interval As Long) As [[SDBTimer]]}} | ||
===Parameters=== | ===Parameters=== |
Latest revision as of 22:20, 5 March 2008
CoClass SDBApplication, Interface ISDBApplication
Function CreateTimer(Interval As Long) As SDBTimer
Parameters
Name | Type | Description |
---|---|---|
Interval | Long | Interval between calls (in milliseconds). |
Method description
Creates new timer.
Example code
Set Tmr = SDB.CreateTimer( 10000) ' Pop up a message in 10 seconds
Script.RegisterEvent Tmr, "OnTimer", "TestTimer"
Sub TestTimer( Timer)
SDB.MessageBox "10 seconds elapsed!", mtInformation, Array(mbOk)
Script.UnregisterEvents Timer ' Terminate usage of this timer
End Sub