|
-
Sep 13th, 2007, 12:09 PM
#1
Thread Starter
Hyperactive Member
Serial data string to multiple textboxes
I have tried to read from the serial port and display the string content to 4 textboxes. Problem is when I use Mid, then only the first Textbox displays data, there is nothing on the others. If I jump over the first one then only the second one shows data.
[Private Sub btnVoltage_Click()
Timer1.Enabled = True
MSComm1.Output = ("B9" & vbCr)
txtDataReceived1.Text = Mid(MSComm1.Input, 5, 4)
txtDataReceived2.Text = Mid(MSComm1.Input, 9, 4)
txtDataReceived3.Text = Mid(MSComm1.Input, 13, 4)
txtDataReceived4.Text = Mid(MSComm1.Input, 21, 4)
End Sub]
Thanks
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
|