Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21969

mscomm1.input problem

$
0
0
Hello, i want to receive data from pic, for example when pic sends 97 i see "a" character in label1, vb shows me ascii character value of my data, all i want to do is when 97 comes from PIC i want to see 97 in label1, i just want to see real value of data in vb, i use vb6.0, my codes are like this

Private Sub Form_Load()
MSComm1.PortOpen = True
End Sub

Private Sub MSComm1_OnComm()
Dim a As String
MSComm1.RThreshold = 1
a = MSComm1.Input
Label1.Caption = a
End Sub

i tried to use asc function, i tried mscomm1.inputmode binary, i tried everything but it doesnt work

Viewing all articles
Browse latest Browse all 21969

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>