Data Types in VB.NET | VB.NET | Visual Basic Data Types | Data Types in VB
Table of Contents
Data Types In VB.NET
When you develop a program, you occasionally need to work with different types of data(values). such us numeric, Boolean, and String. VB.NET has its own set of types, known as data types, to store different types of values.
Data types in VB.NET | Storage Size
Type | Storage Size |
Boolean | Depends on the implementing platform |
Byte | 1 bytes |
Char (Single Character) | 2 bytes |
Date | 8 bytes |
Decimal | 16 bytes |
Double | 8 bytes |
Integer | 4 bytes |
Long (integer) | 8 bytes |
Object | 4 bytes on 32-bit platform, 8 bytes on 64-bit platform |
SByte | 1 byte |
Short (Short Integer) | 2 bytes |
Single (Single-Precision floating-point) | 4 bytes |
String (Variable-Length) | Depends on the implementing platform |
UInteger | 4 bytes |
ULong | 8 bytes |
Also Read:
I hope you like the post (Data Types In VB.NET).
Don’t forget to share it.