>With:
>
>BINDEVENT(oEventSource,"GOTFOCUS" , oEventHandler ,"Binded", 2)
>BINDEVENT(oEventSource,"LOSTFOCUS", oEventHandler ,"Binded", 2)
>
>With this:
>
>- Programmatic call to oEventSource.XXXfocus -> Not Fire
>- RAISEEVENT(oEventSource,"XXXfocus") -> Fire
>- System call to oEventSource.XXXfocus -> Not Fire : BUG
>
>
Fabio,
Unless I completely misunderstand, this is not a bug, but rather documented behavior. From the help file:
Certain control events such as GotFocus, LostFocus, InteractiveChange, and ProgrammaticChange do not work if the second bit of the nFlags parameter is set, for example, nFlags set to 2. These events are treated as method calls internally by Visual FoxPro, even though they are considered events. The same behavior applies to the Refresh method of an object on a form that is called when the form's Refresh method is called. Certain events such as When and Valid require code in the event for it to occur.
George
Ubi caritas et amor, deus ibi est