|
-
Dec 12th, 1999, 09:52 PM
#1
Thread Starter
Member
has anybody used the MScomm control to get the serial data available on the port.
When I try to send some dataon MSCOMM.output command, it does not allow me( just to check that it works).
any ideas ?
Foll. is the code :
Private Sub Form_Load()
' Open the serial port
MSComm1.CommPort = 2
MSComm1.Settings = "9600,N,8,1"
MSComm1.PortOpen = True
Dim ss As Variant
ss = "a"
MSComm1.Output = ss
MSComm1.InputLen = 0
MsgBox MSComm1.Input
End Sub
Thanks
-
Dec 12th, 1999, 10:11 PM
#2
Lively Member
You should add an enter to ss: ss = "a" & vbcrlf
Use MSComm.input in the OnComm event.
-
Dec 12th, 1999, 11:44 PM
#3
Thread Starter
Member
thanks, man.
Will try and let u know.
Shastri
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|