timer class : Stop() method

Description

Stops the timer handling.

Syntax

instance.Stop()

Arguments

None

Return value

None

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 Stop() method is as follows.

1:

handle h = new handle();

2:

timer tim = new timer(h,"THandler(dictionary)", 1000);

3:

tim.Start();

4:

tim.Stop(); // It stop the timer handling.

Notes

Don't forget to stop timer handling when the script ends and when the application ends.

If the timer handling is already stopped, re-call will be ignored.

Links for reference

None

Copyright © Cooker All rights reserved.