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:
- Variables
- Literals
- Constants
- Enumerations
- Properties
- Procedure parameters
- Procedure arguments
- Procedure return values
Declared data types
TODO
Programming element | Data type declaration |
---|---|
Variable | In a Dim Statement, New Statement, or Object Statement
|
Literal | See the section of Type Characters § Default literal types
|
Constant | In a Const Statement
|
Enumeration | In an Enum Statement
|
Property | In a Property Statement
|
Procedure parameter | In a Function Statement, Method Statement, or Sub Statement
|
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
|
Procedure return value | In a Function Statement Method Statement, or Sub Statement
|