Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MSComm
Message
De
11/11/2004 04:39:08
 
 
À
10/11/2004 11:29:30
Information générale
Forum:
Visual Basic
Catégorie:
Contrôles ActiveX
Titre:
Re: MSComm
Divers
Thread ID:
00954397
Message ID:
00960311
Vues:
9
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
Fil
Voir

Click here to load this message in the networking platform