Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing Port
Message
De
18/11/2003 15:38:18
 
 
À
18/11/2003 13:45:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00850804
Message ID:
00851153
Vues:
10
Matt,

If you are trying to switch ports on the fly, you must close the port first, then set the commport and reopen. No exceptions :-) Also adviseable is to test for anything pending in the output buffer, and clear it if necessary. Trying to close the port with pending data may fail.

>Hi Viv,
>
>Thanks for tips. Unfortunately, in my case, if Comm Port 1 is opened and when I use oComm.PortOpen = .F. after issuing oComm.CommPort = 1, it still opened. Is there a win32 api function that will force specific port to close. Thanks
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform