Data Types

The data type of a programming element is related to what type of data it can hold and how it stores that data. Data types are applicable to all values stored in computer memory or used in an expression. Programming elements with a data type include:

Declared data types

TODO

Programming element Data type declaration
Variable

In a Dim Statement, New Statement, or Object Statement

Dim count As Int32
Literal

See the section of Type Characters § Default literal types

Var dateSeparator As Char = `-`
Constant

In a Const Statement

Const MAX_COUNT As Int32 = 100
Enumeration

In an Enum Statement

Enum DaysOfTheWeek
Property

In a Property Statement

Property Name As String
Procedure parameter

In a Function Statement, Method Statement, or Sub Statement

Sub AddItem ( item As String )
Procedure argument

In the call to a procedure, each argument is a programming element that was declared before, or an expression that contains declared elements

stringArray = Split( inputString , ",")
Procedure return value

In a Function Statement Method Statement, or Sub Statement

Method ToString As String

See also