Visual Basic - automatic variable declaration: Dim =, Dim As =

variable declaration is used for its creation.

Dim =, Dim As =

Description

 Dim name = par2
 Dim name = init_value
 Dim name  As type = init_value
Used keywords: = as dim
Data:
  • name -

Input

Examples

Visual Basic .NET

automatic variable declaration the possible of use:
xmin = -128
 ymax = 127
Dim x As sbyte= -5           ' x = -5
Dim y As sbyte= -(15 mod 4)   ' y = -3
y = CSByte((x * y))    ' z = 15

Visual Basic .NET

Other pieces of example codes:
Dim x As uinteger=70000
Dim x As single= 3.14159265359
Dim x As long= -82345
Dim x As integer= -12345
Dim x As ushort=280
Dim x As ulong=7001234
automatic variable declaration in another programming language:
Differences to:
Languages: en hu cz sk