See
Re: Why EventHandler returns .f. Message #
1067274>I created an EXE com control and when I try to bind with EventHandler, it always returns .F. The COM is from VFP. I made a classlib, added a timer and called it ShowTime. In the TIMER() event, the only code is:
>
>WAIT WINDOW NOWAIT NOCLEAR TTOC(DATETIME())
>RETURN
>
>The class is olepublic, and it works just fine as a standalone. However, when I try to use the EventHandler() function, the binding returns false. I used the VFP object browser o make the class. I also made all the PEM hidden, except for ENABLED, INTERVAL, and TIMER (top and left were not options, so I could not hide them):
<snip>
--sb--