Visual Basic data types:
Boolean - logical type. 2 bytes are allocated for storing the variable. The variable can only take 2 values True and False.
Byte - numeric type. 1 byte is allocated for storing the variable. The variable value can be in the range from 0 to 255. The sign is not used.
Char - character type. 2 bytes are allocated for storing the variable. Characters are usually used as the variable value, since 2 bytes are now used. Developers can use Unicode characters.
Date - is used to store dates. The variable takes up 8 bytes. Possible values range from January 1, 100 AD to December 31, 9999.
Decimal is the most powerful numeric type. 16 bytes are allocated for storing a variable of this type. The negative and positive boundaries of the range in which the possible values of this variable are located are the same in magnitude and equal to +/- 79,228,162,514,264,337,593,543,950,335 if integers are used. If it is necessary to store fractional values, the boundaries of possible values will be shifted by several orders of magnitude depending on how many decimal places the developer uses. This type can only be used to store decimal fractions. The developer can use up to 28 decimal places.
Double is a numeric type. It is used to store numbers in exponential form. 8 bytes are allocated for storing the variable. Negative values are in the range from - 1.79769313486231E+308 to -4.94065645841247E-324. Positive values are in the range from 4.94065645841247E-324 to 1.79769313486231E+308.
Integer - is designed to handle integer values. A variable of this type takes up 4 bytes. Possible values are in the range from - 2,147,483,648 to 2,147,483,647.
Long - is intended for integer values. A byte is allocated to store the variable. Possible values of a variable of this type are in the range from - 9,223,372,036,854,775,808 to 9,223,372,036,854,775,807.
Object - essentially, a variable of this type is just a reference to a specific instance of an object. 4 bytes are allocated for storing the variable.
Short - lightweight integer type. 2 bytes are allocated for storing the variable. Possible values of a variable of this type are in the range from - 32,768 to 32,767.
Single - is designed to store numbers in exponential form. 4 bytes are allocated for storing the variable. Negative possible values of a variable of this type are located in the range from - 3.402823E+38 to -1.401298E-45. Positive values are in the range from 1.401298E-45 to 3.402823E+38.
String - string type. Designed to store strings of varying length. The possible length of a string can reach up to 2 million Unicode characters. The amount of memory for storing the variable is allocated depending on the length of the string.
{\__/} ( • - •) Let me wish /つ ✿ you good luck!
Please Log in to join the conversation.