General information
Category:
ActiveX controls
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only