Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MSCOMM
Message
De
14/08/1998 10:22:58
Shihchau Tai
Apic Systems Pte Ltd
Singapore, Singapour
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Contrôles ActiveX
Titre:
MSCOMM
Divers
Thread ID:
00126911
Message ID:
00126911
Vues:
50
I am a VB beginner. This routine returns error '8005, Port already open' at line PortOpen = True. If I use CommPort = 1, it gives me 'invalid Port number' at PortOpen = True. What is the problem?

Private Sub Form_Load()
CommCtrl.CommPort = 2
CommCtrl.Settings = "9600,n,8,1"
CommCtrl.InputLen = 0
CommCtrl.PortOpen = True
CommCtrl.Output = "ATZ" + Chr(13)
Do
DummyVar = DoEvents()
Loop Until CommCtrl.InBufferCount >= 2
InString$ = CommCtrl.Input
CommCtrl.PortOpen = False
End Sub
Répondre
Fil
Voir

Click here to load this message in the networking platform