timer 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 THandler(dictionary dic)

3:

... // timer handler code.

4:

endmethod

5:

endclass

Usage of the Handler getter is as follows.

1:

handle h = new handle();

2:

timer tim = new timer(h, "THandler(dictionary)", 1000); // It sets the instance of the handle class.

3:

m.Show(tim.Handler.TypeName); // "handle"

Notes

The return type depends on the configured instance.

Links for reference

None.

Copyright © Cooker All rights reserved.