Home News DOC Class DL Others Rice
Class  >  switch  >  Start()
switch class : Start() method

Description

Starts the event handling.

Syntax

instance.Start()

Arguments

None

Return value

None

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

1:

browser b = new browser();

2:

handle h = new handle();

3:

switch sw = b.LoadCompleted(h,"LCHandler(dictionary)");

4:

sw.Start(); // The handler method will be called every time an event occurs.

Notes

The handler method is called each time an event occurs.

The method call continues until it is stopped explicitly or by an exception.

If this method is already called, re-call will be ignored.

Links for reference

None

Copyright © Rice All rights reserved.