Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comm Port Firing
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00894250
Message ID:
00894273
Vues:
8
Hi Sergey
Great ! Thank you, I wonmder if you could help me a little more. I found the simple code below for inputing from the comm port. Do you know the opposite of oComm.input ? Is it oComm.output ?
Thanks for your time.
Cheers
John

* load mscomm
oComm = CREATEOBJ('MSCOMMLib.MSComm')
* Open and Initialize COM port #1 for use
oComm.CommPort = 1
oComm.Settings = "9600,N,8,1"
oComm.InputLen = 0
oComm.PortOpen = .T.

FOR i = 1 to 10000
oComm.inputlen = 1
lnChar = oComm.input
IF lnchar = "A"
EXIT
ENDIF
ENDFOR

* Close the port
oComm.PortOpen = .F.
release oComm
To move a mountain start with the smallest stone
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform