Hi all,
I'm having problems trying to type cast in VB.Net. I'd like to read
in a 16 bit unsigned integer and convert it to a signed 16 bit
integer. I'm using the following line of code:
Dim wordVal As Short
wordVal = CShort(Val(inpu t.Text))
output.Text = wordVal
Whenever input.Text 32767, I get a run-time error. Looking for some
suggestions.
Thanks in advance,
-weg
I'm having problems trying to type cast in VB.Net. I'd like to read
in a 16 bit unsigned integer and convert it to a signed 16 bit
integer. I'm using the following line of code:
Dim wordVal As Short
wordVal = CShort(Val(inpu t.Text))
output.Text = wordVal
Whenever input.Text 32767, I get a run-time error. Looking for some
suggestions.
Thanks in advance,
-weg
Comment