RemoveHandler

From Xojo Documentation

Revision as of 19:35, 9 July 2018 by PLefebvre (talk | contribs) (See Also)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Language Keyword

Removes an event handler that was added by AddHandler. You need to match the AddHandler call.

Usage

RemoveHandler <event> , <method>

Part Description
eventName The event is handled by a method.
delegateMethod The method that handles the event.

Notes

Always remove any handlers added with AddHandler when you are finished with them.

Sample Code

This example removes the work of the AddHandler example. Please see that example for a description of how it works.

RemoveHandler t.Action, AddressOf MyTimeOut

This removes the handler that was added by the example in AddHandler.

See Also

AddHandler, AddressOf statements.