Information générale
Catégorie:
Contrôles ActiveX en VFP
Titre:
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 !
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement