ACK or NACK Message inside of vb
Posted on 2012-09-20
How can I catch the ACK or NACK in my serial COM using the following code. Once I parse the incoming message I palce the ACK or NACK inside slot (0) I then want to compare to see whether it was ACK or NACK. I put in an if statement to look for whats inside the Array slot (0) however how can I compare it to the ACK or NACK value.
strData = strData.Replace(vbCrLf, vbTab).Replace(Chr(26), "").Replace(Chr(12), "").Replace(Chr(13), "")
'Parses out the information gathered from the COM port to a temp array
tempArray = Split(strData, ",")
If tempArray(0) = Then