Data Type Reference
Data Type Reference
No
Accept a Decimal?
-32,768 to 32,767 -2,147,483,648 to 2,147,483,647 -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 1.0e-28 to 7.9e28 Jan 1, 0001 to Dec 31, 9999 0:00:00 to 23:59:59 True or False one Unicode character
2 4 8
No No No
Yes
Decimal
16 8 2 2
Yes
No
Use the String data type (Zip codes, phone numbers, etc.)
Yes
Data Type
Short
Prefix
sho
No
Yes
No
Character
Variable Declaration
Yes
Dim varName As Type - Where varName is the variable and Type is the data type -Substitute the name of your variable for varName and change Type to the data type for the variable
Use the Integer data type
No
Yes
No
Constant Declaration
Const SALES_TAX_RATE As Decimal = 0.05 - Const creates a constant that cant be changed - Reserves memory for SALES_TAX_RATE - Declared as a Decimal - Assigns value of 0.05 NOTE: All caps coding standard is different than book - SALES_TAX_RATE cannot changed at runtime - Value can only be changed by changing this line - You MUST give a constant a value when you declare it
Yes