Hai
I am writing an application that reads the data from the serial port in to a byte array(example bf).I had converted the byte array to string using
string s=Bitconverter. Tostring(bf)
Now i want to get an integer value from 0th and 1st bytes in bytearray.
the values that comes in my bytearray are
bf[0]=165
bf[1]=03
when it is converted to string it will be A503
i need an integer from bf[0] and bf[1].
please help me
thanks in advance
maya
I am writing an application that reads the data from the serial port in to a byte array(example bf).I had converted the byte array to string using
string s=Bitconverter. Tostring(bf)
Now i want to get an integer value from 0th and 1st bytes in bytearray.
the values that comes in my bytearray are
bf[0]=165
bf[1]=03
when it is converted to string it will be A503
i need an integer from bf[0] and bf[1].
please help me
thanks in advance
maya
Comment