Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DoEvents, ActiveX, AutoYield
Message
From
01/06/2001 04:12:23
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
DoEvents, ActiveX, AutoYield
Miscellaneous
Thread ID:
00513614
Message ID:
00513614
Views:
72
Hello Everybody !

In my application I have two forms :
-chat (main)
-transfer
In "chat" form I have an ActiveX "MSWinsck.ocx" with the function to send/get commands to/from remote PCs on the network . The "MSWinsck.ocx" sends data and when receives the answer stores the answer in a table field, called "result" .
In "transfer" I have a method , "launch" , in which I call "MSWinsck.ocx" to send data . To wait until the "MSWinsck.ocx" receives the answer I have (in this "launch" method) a "do while ..." procedure which contains "DoEvents" to be able to interrupt the process.
THE PROBLEM IS that the response from the remote PC doesn't come back . Could this be because VFP is executing the "do while... " procedure and doesn't "see" the other commands that should be executed ("MSWinsck.ocx" functions) ? Still I have the "DoEvents" which should execute pending commands .
I read in Help that for an application to execute pending commands the application should have the AutoYield property set to .T. (default) , but , if it contains ActiveX objects , then AutoYield should be set to .F. . So , finally, what should I do ?

ANY help is WELCOME !
Next
Reply
Map
View

Click here to load this message in the networking platform