RemoveHandler

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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.