Capsol,
Is not a bug. Is how it works. If you delete the event from the object
inspector and there is NO OTHER control using that event, then the complete
event is deleted. BTW, if you change the event name you will see how the IDE
changes also the method name without losing any code.
Regards,
"Capsol Coder" <
nick__NOSPAM__@capsol.com.au> escribió en el mensaje
news:[email=
4476f815@ozsrvnegro.ozlan.local...]
4476f815@ozsrvnegro.ozlan.local...[/email]
> Hi
>
> I'm not sure if this is a bug or not
>
> When you are working with forms, when you click the object browser event
> it
> auto creates the event in code For example OnClick.
>
> Then you can just code the OnClick event
>
> But lets say you decide that you want to use your own method for the
> on click event, lets call it myevent()
>
> So in the object browser under OnClick I drop down the box and select
> myevent() .
>
> But hang on, no, I changed my mind, so I high light the event and clear it
> from the onclick event.
>
> The ide not only clears the event, but it also deletes the myevent()
> method
> completely. ( I might have spent 2 hours writing it)
>
> This is what I think is a bug. Maybe it just needs a warning,
>
> Do you wish to keep myevent() or would you like it deleted from the
> sources
>
> Hopefully between this and the attached screen shots you get what I mean
>
> (Sorry, can't post the screen shot, let me know if you need them)
>
>
> Regards Nick
>
>
>