Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MSComm
Message
From
11/11/2004 04:39:08
 
 
To
10/11/2004 11:29:30
General information
Forum:
Visual Basic
Category:
ActiveX controls
Title:
Re: MSComm
Miscellaneous
Thread ID:
00954397
Message ID:
00960311
Views:
7
Hi,

>>
then if i check oComm.PortOpen, it is False, but if i try to open it, it says that is already open

if oComm.PortOpen = .F. then
oComm.PortOpen = .t.
endif
>>

I was reminded that this thread is in a VB forum - but this is VFP code. IAC the behaviour of PortOpen can be confusing:

PortOpen will return .F. if *your* application has not opened the port - even if it is currently in use by another process.

Opening the port will fail with 'Port already open' if *any* application has the port open so you need to trap for this.

HTH,
Viv
Previous
Reply
Map
View

Click here to load this message in the networking platform