100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4.2 TrustPilot
logo-home
College aantekeningen

developer

Beoordeling
-
Verkocht
-
Pagina's
13
Geüpload op
24-10-2025
Geschreven in
2025/2026

The document outlines the datatypes, variables and how to apply them in a project

Instelling
Vak









Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Instelling
Vak

Documentinformatie

Geüpload op
24 oktober 2025
Aantal pagina's
13
Geschreven in
2025/2026
Type
College aantekeningen
Docent(en)
Jeff
Bevat
Alle colleges

Onderwerpen

Voorbeeld van de inhoud

VB.NET DATA TYPE


- In VB.NET, data type is used to define the type of a variable or function in a program.
- A Data Type refers to which type of data or value is assigning to a variable or function
- Data type are used when declaring variables and constants


Syntax:
Dim Variable_Name as DataType


VariableName: It defines the name of the variable assigned to store values.
DataType: It represents the name of the data type assigned to a variable.


Different Data Types and their allocating spaces in VB.NET
The following table shows the various data types list in the VB.NET programming language.

Data Types Required Space Value Range

A Boolean type depends on
Boolean True or False
the implementing platform

Byte 1 byte Byte Range start from 0 to 255 (unsigned)

Char 2 bytes Char Range start from 0 to 65535 (unsigned)

Date range can be 0:00:0 (midnight) January 1, 0001 to
Date 8 bytes
11:5959 PM of December 31, 9999.

Range from 0 to +/-
79,228,162,514,264,337,593,543,950,335
Decimal 16 bytes (+/-7.9…E+28) without any decimal point;
And 0 to +/-7.92281625142264337593543950335 with 28
position to the right of the decimal

, -1.79769313486231570E+308 to -4.94-65645841246544E-
324 for negative values;
Double 8 bytes
4.94065645841246544E-324 to
1.79769313486231570E+308, for positive values

Integer 4 bytes -2,147,483,648 to 2,147,483,647 (signed)

-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
Long 8 bytes
(9.2…E + 18) (signed)

Object size based on the
platform such as 4 bytes in It can store any type of data defined in a variable of type
Object
32-bit and 8 bytes in 64-bit Object
platform

SByte 1 byte -128 to 127 (signed)

Short 2 bytes -32,768 to 32,767 (signed)

-3.4028235E + 38 to -1.401298E-45 for negative values;
Single 4 bytes
And for positive value: 1.401298E-45 to 3.4028235E + 38.

String Datatype depend on It accepts Unicode character from 0 to approximately 2
String
the implementing platform billion characters.

UInteger 4 bytes The range start from 0 to 4,294,967,295 (unsigned)

The range of ULong start from 0 to
ULong 8 bytes
18,446,744,073,709,551,615 (1.8…E + 19) (unsigned)

User- A user-defined data type
Each member of the structure has its own data type and
Defined depends on the
limits independent of the other members' ranges.
(structure) implementing platform

UShort 2 bytes Range from 0 to 65,535 (unsigned)


Example of Variable declaration statements
Dim b As Byte = 1
Dim num As Integer = 5
Dim si As Single
Dim db As Double
Dim get_date As Date
Dim c As Char
$7.99
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten

Maak kennis met de verkoper
Seller avatar
cmugo1802

Ook beschikbaar in voordeelbundel

Maak kennis met de verkoper

Seller avatar
cmugo1802 meru national polytechnic
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
Nieuw op Stuvia
Lid sinds
2 maanden
Aantal volgers
0
Documenten
11
Laatst verkocht
-

0.0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via Bancontact, iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo eenvoudig kan het zijn.”

Alisha Student

Veelgestelde vragen