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