UNBINDEVENTS( ) Function
You can use UNBINDEVENTS( ) to unbind, or detach, an event that was originally bound to a Visual FoxPro object using BINDEVENT( ). To detach events from Component Object Model (COM) objects, use the EVENTHANDLER( ) function. There are three versions of the syntax.
UNBINDEVENTS(oEventSource, cEvent, oEventHandler, cDelegate) |
UNBINDEVENTS(oEventObject) |
UNBINDEVENTS(hWnd [, nMessage]) |
Parameters
- oEventSource
-
Specifies the event source, which must be a valid Visual FoxPro object.
- oEventObject
-
Specifies an object reference, which can be used as the event source or event handler.
- cEvent
-
Specifies the name of the event, method, or property you want to unbind.
- oEventHandler
-
Specifies the object that is handling the event.
- cDelegate
-
Specifies the delegate method handling the event for oEventHandler.
- hWnd
-
Specifies the integer handle of the window for which events are unbound.
If hWnd is 0, all hWnds are unbound.
If the nMessage parameter isn't included, then all Windows message bindings for the window handle hWnd are unbound.
- nMessage
-
Specifies a valid Windows message (Win Msg) that is unbound. See MSDN (the Microsoft Developer Network) for information about Windows messages.
Return Value
Remarks
Example
See Also
© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic
Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08