Home Notices Documents Classes Download Others Rice
Classes  >  timer  >  Handler(some class)
timer class : Handler(some class) setter

Description

Sets an instance that have a timer handler method.

Syntax

timerInstance.Handler = handlerInstance

Arguments

ClassNameDescription
some classhandlerInstanceA an instance that have a timer handler method.

Return value

None.

Sample code

Suppose you have the following class definition.

1:

class handle

2:

...

3:

open fitter handle()

4:

// any initialization code...

5:

endfitter

6:

...

7:

open method void timerHandler(timer t)

8:

// any handling code....

9:

endmethod

10:

...

11:

endclass

Usage of the Handler setter is as follows.

Note : The following code assumes that an instance "t" of the initialized timer class exists.

1:

handle h = new handle();

2:

t.Handler = h;

3:

t.Signature = "timerHandler(timer)";

3:

t.Interval = 3000;

3:

t.Start();

From this point, "timerHandler(timer)" of "h" will be called at 3 second intervals.

Notes

With this setter you can dynamically change the behavior of the timer.


This setter is added in Rtype.Timer.dll Ver 1.0.0.2.

Links for reference

None.

Copyright © Rice All rights reserved.