Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DoEvents, ActiveX, AutoYield
Message
De
01/06/2001 04:12:23
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
DoEvents, ActiveX, AutoYield
Divers
Thread ID:
00513614
Message ID:
00513614
Vues:
73
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
Fil
Voir

Click here to load this message in the networking platform