General information
Category:
ActiveX controls in VFP
Title:
DoEvents, ActiveX, AutoYield
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only