SyntaxDim result As UInteger = CUInt(expression)
DescriptionNew in 2005. The CUInt function converts expression to the UInteger data type; any fractional portion of expression is rounded. Usage at a Glance
ExampleDim targetNumber As UInteger If IsNumeric(stringNumber) Then targetNumber = CUInt(stringNumber) End If Version DifferencesThe CUInt function is new in the 2005 version of VB. See AlsoCInt Function, CULng Function, CUShort Function |