Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why and where to use the AutoYield property?
Message
 
To
10/02/1999 00:46:32
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00185843
Message ID:
00185856
Views:
13
>I´ve read that in order for an ActiveX control to work properly, you must set _VFP.AutoYield to .F. Why do I have to do this? In which event must I set it? This is very important to me because I am going to use ActiveX controls a lot.
>
>TIA
>
>Luis Guerra
Luis,

The AutoYield property was not properly documented in VFP 5, don't know about 6.

VFP programmers should be aware of its existence and check if it applies to the particular OCX they are implementing.
Mabry and Catalyst FTP OCXs, Sheridan Calendar Widgets need the AutoYield to be set to .F.

We had a discussion of how to implement the Autoyield property in 97, and Paul Vlad Tatavu came with the cleaner implementation, that I paste here.

"Assuming that you don't want to set it at the beggining of you app, I would say that you should have a global var or app property to keep the number of active OCX that need Autoyield = .F. You should increment it in Init and decrement it in Destroy. The ocx that decrements it to zero, resets it to .t."

José
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform