Re: bindevent() requires source event code ?
From: Eugene Vital (dontwantany_at_news.com)
Date: 03/25/05
- Next message: Eugene Vital: "VFP9 OLEDB Bug?"
- Previous message: Carol Crow: "Installshield Express"
- In reply to: gerry: "bindevent() requires source event code ?"
- Next in thread: gerry: "Re: bindevent() requires source event code ?"
- Reply: gerry: "Re: bindevent() requires source event code ?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 24 Mar 2005 19:10:00 -0500
gerry wrote:
> vfp9
> I have a control that is added to a form , in it's INIT() method it issues
> BIND.EVENT(this.parent,"Destroy",this,"OnDestroy")
> if there is any code at all ( even a single "*" ) in the forms
> form.Destroy() method, the control.OnDestroy() delegate is called as
> expected
> however if the form.Destroy() method is empty the delegate is never called
> why does the source object have to override the event in order for bound
> events to fire ?
> anyone have a generic work around that would not required dummy Destroy()
> code to exist ? If I am going to have to add this dummy code I might as
> well just call control.OnDestroy() myself.
>
> Gerry
>
Yes, to work around this put some code or comments in your base class
Destroy() method . This is what is in the Destroy() event of all my base
classes.
*=========================================================================
* Library:
* Class:
* Method: Destroy()
* Dependancies:
* Scope: Public
*=========================================================================
* Description: stadard Destroy()
*=========================================================================
* Parameters: none
* Example:
* Returns:
* Comments: If you use BINBDEVENT() to bind an event to the Destroy()
* method it won't execute if there isn't any code to execute in the
* Destroy() event. It will execute however if there are comments here :)
*=========================================================================
- Next message: Eugene Vital: "VFP9 OLEDB Bug?"
- Previous message: Carol Crow: "Installshield Express"
- In reply to: gerry: "bindevent() requires source event code ?"
- Next in thread: gerry: "Re: bindevent() requires source event code ?"
- Reply: gerry: "Re: bindevent() requires source event code ?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|