BBjAPI::removeAllTimers

Description

In BBj 3.0 and higher, this method removes all timers previously created by the BBj process that is making this call.

Syntax

Return Value

Method

void

removeAllTimers()

Parameters

None.

Return Value

None.

Remarks

None.

Example

REM Timer event

SYSGUI=UNT
OPEN (SYSGUI)"X0"

bbj!=BBjAPI()
sysgui!=BBjAPI().getSysGui()
window! = sysgui!.addWindow(100,100,200,200,"Timer Test")

CALLBACK(ON_CLOSE,APP_CLOSE,sysgui!.getContext())

bbj!.createTimer(1,1,"one")
bbj!.createTimer("ten seconds",10,"ten")
bbj!.createTimer(20,20,"twenty")

PROCESS_EVENTS

APP_CLOSE:
ESCAPE

one:
print "second timer"
return

ten:
print "10 second timer"
return

twenty:
print "20 second timer"
bbj!.removeTimer(20)
return

See Also

Timer Event

BBjAPI

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.