Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Closing Port
Message
From
18/11/2003 15:38:18
 
 
To
18/11/2003 13:45:38
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00850804
Message ID:
00851153
Views:
11
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
Previous
Reply
Map
View

Click here to load this message in the networking platform