Home Cooker Classes Others Rice
Classes  >  switch  >  Handler
switch class : Handler getter

Description

Gets an instance of an user defined class that have the eventhandler method.

Syntax

switchInstance.Handler

Arguments

None

Return value

ClassDescription
some classAn instance of an user defined class that have the eventhandler method.

Sample code

1:

class handle

2:

...

3:

open fitter handle()

4:

// any initialization code...

5:

endfitter

6:

...

7:

open setter SomeSetter(string val)

8:

...

9:

endsetter

10:

...

11:

open method void handler(lceva ea)

12:

...

13:

switch ehs = ea.Switch;

14:

handle h = ehs.Handler;

15:

h.SomeSetter = "value";

16:

...

17:

endmethod

18:

...

19:

endclass

Notes

None.

Links for reference

None.

Copyright © Rice All rights reserved.