You are currently viewing Visual Basic Data Type
Data type

Visual Basic Data Type

Every database store the data in their format . You can  define the data type in column before storing of data . For example you want to store data name in a field then you should choose the data type “char or text”.

Visual Basic Data type


Visual basic data type

Common language runtime type structure 

Nominal storage allocation 

Value range 



Depends on implementing platform

True or False



1 Byte

0 through 255 (unsigned)

Char (single character)


2 Byte

0 through 65535 (unsigned)

The first 128 code points (0–127) of Unicode correspond to the letters and symbols on a standard U.S. keyboard. These first 128 code points are the same as those the ASCII character set defines. The second 128 code points (128–255) represent special characters, such as Latin-based alphabet letters, accents, currency symbols, and fractions. Unicode uses the remaining code points (256-65535) for a wide variety of symbols, including worldwide textual characters, diacritics, and mathematical and technical symbols.


Date Time

8 bytes

0:00:00 (midnight) on January 1, 0001 through 11:59:59 PM on December 31, 9999



16 bytes

0 through +/-79,228,162,514,264,337,593,543,950,335 (+/-7.9...E+28) with no decimal point; 0 through +/-7.9228162514264337593543950335 with 28 places to the right of the decimal; 

smallest nonzero number is +/-0.0000000000000000000000000001 (+/-1E-28)

Double (double-precision floating-point)


8 byte

-1.79769313486231570E+308 through -4.94065645841246544E-324 for negative values; 

4.94065645841246544E-324 through 1.79769313486231570E+308 for positive values


Int 32

4 byte

-2,147,483,648 through 2,147,483,647 (signed)

Long (long integer)

Int 64

8 byte

-9,223,372,036,854,775,808 through 9,223,372,036,854,775,807 (9.2...E+18 ) (signed)


Object (Class)

4 bytes on 32-bit platform

8 bytes on 64-bit platform

Any type can be stored in a variable of type Object



-128 through 127 (signed)

Short (short integer)

Int 16

2 byte

-32,768 through 32,767 (signed)

Single (single-precision floating-point)


4 byte

-3.4028235E+38 through -1.401298E-45 for negative values;

1.401298E-45 through 3.4028235E+38 for positive values

String (variable-length)

String (class)

Depends on implementing platform

0 to approximately 2 billion Unicode characters


UInt 32

4 byte

0 through 4,294,967,295 (unsigned)


UInt 64

8 byte

0 through 18,446,744,073,709,551,615 (1.8...E+19 ) (unsigned)



(inherits from Value type)

Depends on implementing platform

Each member of the structure has a range determined by its data type and independent of the ranges of the other members


UInt 16

2 bytes

0 through 65,535 (unsigned)

Option Strict & Option Explicit

Option Strict

   By default it is off, if it on then data type have to change

Data Type

Option Explicit

               By default it is On, if This is the option that requires any variable you use in your code to be declared first . It can be off by wrint this statement Option Explicit Off or by going in menue =>Tool   =>   Option   =>     Project and Slution

Data Type
Data Type

This Post Has 2 Comments

  1. Vickie Dahlen

    Hi there mates, nice paragraph and good arguments commented here,
    I am genuinely enjoying by these.


    Good day! I just would like to offer you a big thumbs up for your excellent information you have right here on this post.
    I will be returning to your web site for more soon.

Leave a Reply