Example Types of Variable
Example Types of Variable
Net
VB.Net provides a wide range of data types. The following table shows all the data
types available:
Double 8 bytes
-1.79769313486231570E+308 through -
4.94065645841246544E-324, for
negative values
4.94065645841246544E-324 through
1.79769313486231570E+308, for
positive values
8 bytes on 64-bit
platform
Module DataTypes
Sub Main()
Dim b As Byte
Dim n As Integer
Dim si As Single
Dim d As Double
Dim da As Date
Dim c As Char
Dim s As String
Dim bl As Boolean
b = 1
n = 1234567
si = 0.12345678901234566
d = 0.12345678901234566
da = Today
c = "U"c
s = "Me"
bl = True
Else
bl = False
End If
If bl Then
End If
Console.ReadKey()
End Sub
End Module
When the above code is compiled and executed, it produces the following result:
U and, Me