Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comm Port Firing
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00894250
Message ID:
00894273
Views:
7
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform