Home News DOC Class DL Others Rice
Class  >  switch  >  Handler
switch class : Handler getter

Description

Returns an instance of an user-defined class that have the handler method.

Syntax

instance.Handler

Arguments

None

Return value

ClassDescription
user-defined classAn instance of an user-defined class.

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 Handler 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.Handler.TypeName); // "handle"

Notes

The return type depends on the configured instance.

Links for reference

None.

Copyright © Rice All rights reserved.