Value Types
A value type is also known as a Primitive or Simple data type.
Value data types are automatically given a default value of zero (or equivalent) when they are declared.
Array | An array is a group of elements of the same type that have a common name. In C# this is a Reference Type. |
Boolean | The boolean data type can contain either the value True or False. |
Byte | The byte data type can contain any positive number between 0 and 255. |
Currency | The currency data type can store numbers in the range from -922,337,203,477.5808 (-9.22 E14) to 922,337,203,685,477.5807 (+9.22 E14) |
Date | The date data type can hold any date in the range 1 Jan 0100 to 31 Dec 1999 |
Double | This is short for double precision floating point |
Enumerations | An enumeration is a way of grouping symbolic constants into a single category. |
Integer | The integer data type can contain any number between -32,768 and 32,767 |
Long | The long data type can contain any number between -2,147,483,648 and 2,147,486,647 |
LongLong | The longlong data type can contain any (64 bit only) number |
LongPtr | This was added in Office 2010 (VBA 7.0) |
Single | This is short for single precision floating point |
String | The string data type can contain any sequence of characters. In C# this is a Reference Type. |
© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext