| **Navigation:**  [[introduction.htm|Language Reference]] > 13 - Built-in Functions >====== UNREGISTER (unregister event handler) ====== | [[unquoteremovestring special characters .htm|{{btn_prev_n.gif|Previous page}}]][[introduction.htm|{{btn_home_n.gif|Return to chapter overview}}]][[untie disassociate a string value from an astring .htm|{{btn_next_n.gif|Next page}}]] | | || **UNREGISTER(** [//event //] [,// handler //] [,// object// ] [,//window//] [,//control//] **)** {{blk2blue.jpg|blk2blue.jpg}} | **UNREGISTER** | Unregisters an event handling procedure. | | //event// | An integer constant, variable, expression, or EQUATE containing an event number. A value in the range 400h to 0FFFh is a User-defined event. If omitted, all //events// are unregistered. | | //handler// | A LONG variable, or expression containing the return value from ADDRESS for the PROCEDURE to handle the //event//. If omitted, all //handlers// are unregistered. | | //object// | A LONG integer constant, variable, or expression containing any 32-bit unique value to identify the specific //handler//. This is generally the return value of ADDRESS(SELF) when the //handler// is a CLASS method. | | //window// | The label of the WINDOW or REPORT whose //event// to handle. If omitted, the current target WINDOW or REPORT is assumed. | | //control// | An integer constant, EQUATE, variable, or expression containing the field number of the specific control whose //event// to handle. If omitted, the //event// is handled for every control on the //window//. | **UNREGISTER** prevents a previously REGISTERed event //handler// PROCEDURE from being called to handle its //event//. {{notebox.jpg|NoteBox.jpg}} Can also be prototyped as **UNREGISTEREVENT**. **Example:** **WindowResizeClass.Kill PROCEDURE** ** CODE** ** ****UNREGISTER****(EVENT:Sized,ADDRESS(SELF.TakeResize),ADDRESS(SELF))** ** !Other code follows** **WindowResizeClass.TakeResize PROCEDURE** **ReturnValue  BYTE** ** CODE** ** ReturnValue  = Level:Benign** ** RETURN(ReturnValue)** **See Also:** [[register register event handler .htm|REGISTER]] [[accept the event processor .htm|ACCEPT]] [[event return event number .htm|EVENT]]