Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why Does BindEvents and ThisForm.Hide( ) not seem to wor
Message
 
 
To
11/08/2004 12:38:15
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00932399
Message ID:
00932407
Views:
14
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform