BINDEVENT is usually used to run code in a delegate method and is not really a substitute to fire an event when a button is clicked in your example. Maybe you want to use RAISEEVENT()?
>I’m just starting working with BindEvents and while I have been able to bind to my custom form methods I cannot seem to get it to work with ThisForm.Hide. For example:
>
>
>BINDEVENT( ThisForm.cmdexit, 'click', ThisForm, 'Hide', 1 )
>
>
>Does not hide the form as I would expect. If I put in the LOC of ThisForm.Hide( ) in the cmdExit click button it works fine. I get no compile or runtime errors, and I find nothing in the help guide that makes me think that I cannot do this.
>
>What am I missing? ( BTW using VFP 8.0 )
>
>Anthony L. Testi
Mark McCasland
Midlothian, TX USA