I am trying to convert an Integer to UINT16. How do you do it?
Using: Visual Studio .Net Enterprise Visual Basic 6.0 Enterprise
This , it won't compile . It says can't convert from integer to UInt16 . VB Code: Dim i As Integer i = CType(i, UInt16)
Dim i As Integer i = CType(i, UInt16)
VB Code: Dim i As Integer Dim u As UInt16 i = 101 u = Convert.ToUInt16(i)
Dim i As Integer Dim u As UInt16 i = 101 u = Convert.ToUInt16(i)
Originally posted by Mike Hildner 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.....
Forum Rules