switch 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 LCHandler(dictionary dic) |
3: | ... // event handler code. |
4: | endmethod |
5: | endclass |
Usage of the Signature getter is as follows.
1: | browser b = new browser(); |
2: | handle h = new handle(); |
3: | switch sw = b.LoadCompleted(h,"LCHandler(dictionary)"); // It sets the instance of the handle class. |
4: | m.Show(sw.Signature); // "LCHandler(dictionary)" |
Notes
The signature is the information for the switch 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