Data Types, Variables
Data Types, Variables
and Constants
FOR LE1, LE2 AND LE3
Numeric Data types
Non Numeric Data types
Suffixes for Literals
• Literals are values that you assign to a data.
• In some cases, we need to add a suffix behind a literal so that Visual Basic
2012 can handle the calculation more accurately.
• For example, we can use num=1.3089# for a Double type data.
Rules in Naming Variables
• It must be less than 255 characters
• No spacing is allowed
• It must not begin with a number
• Period is not permitted
Declaring Variables
Dim Variable Name As Data Type