I am trying to convert an Integer to UINT16. How do you do it?
Printable View
I am trying to convert an Integer to UINT16. How do you do it?
This , it won't compile . It says can't convert from integer to UInt16 .
VB Code:
Dim i As Integer i = CType(i, UInt16)
VB Code:
Dim i As Integer Dim u As UInt16 i = 101 u = Convert.ToUInt16(i)
D'uh , completely forgot about the static function Convert.....:oQuote:
Originally posted by Mike Hildner
VB Code:
Dim i As Integer Dim u As UInt16 i = 101 u = Convert.ToUInt16(i)