> > 
> > Why do you want to stop the observer?
> 
> as usual, i'm just interested ;)
> in my example, the raising of observer events may become unnecessary or
> unwelcome because they restrict a control (i wanted to try another way
> of limiting the input of a textbox to number only, for example).
> now, i'm discovering
> FOR EACH s IN Class.Load("TextBox").Symbols
> to copy the entire textbox before deleting it to get rid of the events :)
> 
> regards,
> tobi
> 

An observer is a Gambas object. So if you want him to stop raising events, 
just use Object.Detach() on it.

Regards,

-- 
Benoît Minisini

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to