CUint Function in VB.NET

How to use CUint Function?

Explanation

CUInt Function

CUint Function in Visual Basic.net 2008 hold an unsigned 32 bit integer ranging from 0 through 4,294,967,295. This function is not included in the VB.net namespace, instead it is directly implemented in the compiler.
Syntax:

CUInt(expression)
Example:

Module Module1
Sub Main()
Dim unsigned As UInteger = 164
unsigned *= CUInt(2)
Console.WriteLine("32 bit unsigned Integer Value
is::" & unsigned)
Console.ReadLine()
End Sub
End Module
Result:

32 bit unsigned Integer Value is:: 328

In the above CUint Function example, a 32-bit unsigned integer is multiplied with an integer value.

Visual Basic Tutorial


Ask Questions

Ask Question