Information générale
Catégorie:
Contrôles ActiveX
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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement