You said you added a value like "A" yet in you're code you have:
msg.Substring(i, 2)
If msg is only "A" how can it get 2 characters from it? It would throw and OutOfRange exception.
No comments:
Post a Comment