Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How does _VFP.AutoYield really work?
Message
From
09/02/2000 10:29:09
 
 
To
09/02/2000 10:24:20
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00329123
Message ID:
00329423
Views:
55
You've been a big help Sylvain. I was going to say in my first reply that raising an event in VB might be a way to go but as you can tell I'm still trying to get my VFP event model legs under me. Thanks again Sylvain.

>You are right on track. When asking the COM to request the weight, I send THIS and the name of the method to call to the COM as parameters. The COM will then call this method when it receive the weight. My VFP application will loop until it receive a weight from the COM or until it time out.
>
>A better approach that I will try the next time would be to have the COM raise an event when it have received the weight and have VFP respond to that event with the help of VFPCOM.BindEvents(). That way, I wouldn't need to pass any parameters to the COM.
>Thanks Sylvain. That makes it a little clearer. So you are using a construct similar to a callback? You pass a reference to your VFP COM object and the method name and then when OnComm fires in your VB COM object you callback to the VFP COM object using the reference and name? Do I understand or am I way off here?
Previous
Reply
Map
View

Click here to load this message in the networking platform