VB shouldn't be having any trouble sending multiple characters. e.g. mscomm1.Output = "123" will send three characters: '1', '2', '3'. The most likely cause to you not receiving multiple characters is due to your receiver code being invalid.
If you didn't want to have to worry about framing the data you send, you can do as Ian suggested and send a single character having a value between 0-255, i.e. mscomm1.Output = chr(val(text1.Text)). Then you only have to receive a single byte. The manner in which you extract data from that byte is up to you.
When you say you have multiple numbers ... Is there a delimiter? ie.. 1,2,3 separated by comma's.
If that is the case you need a simple parser.... lets assume we have the string "55,22,128,33" in text1.text
Hello friends I think you still did not get what I mean.
I'm entering a number in the text box.There is no any delimiter or commas.I'm entering a number between 1 to 16 thats it.
Ex:
I type 1 & I press command button then it must send 1
I type 2 & I press command button then it must send 2
I type 3 & I press command button then it must send 3
I type 10 & I press command button then it must send 10
I type 16 & I press command button then it must send 16
So this value must be saved in PIC thats it.The problem I'm facing is, from 1 to 9 the PIC will receive nicely & from 10 onwards it will send some other value.
So you are sending and receiving ascii (text)...... Then you'll have to program the pic to accept more than one byte... Unless you change your programming style to send binary...
The 'number' in the textbox is actually a text string. Take that string and change it into a value. Will look something like:
NumberToSend = Val(TextBox.Text)
The 'number' in the textbox is actually a text string. Take that string and change it into a value. Will look something like:
NumberToSend = Val(TextBox.Text)
The 'number' in the textbox is actually a text string. Take that string and change it into a value. Will look something like:
NumberToSend = Val(TextBox.Text)