timer class : Signature getter
Description
Returns the signature of the handler.
Syntax
instance.Signature
Arguments
None
Return value
Class | Description |
string | The signature of the handler. |
Sample code
Suppose you have the following class definition.
1: | class handle |
2: | open method void THandler(dictionary dic) |
3: | ... // timer handler code. |
4: | endmethod |
5: | endclass |
Usage of the Signature getter is as follows.
1: | handle h = new handle(); |
2: | timer tim = new timer(h,"THandler(dictionary)", 1000); |
3: | message m; |
4: | m.Show(tim.Signature); // "THandler(dictionary)" |
Notes
The signature is the information for the timer to call the handler. It is a string that concatenates the handler method name and arguments.
The handler must be an open method with one argument of the dictionary class. If the method name of the handler is "handlerName", the definition of the handler is as follows.
"handlerName(dictionary)"
Links for reference
None