Variables Store Many Types of Information
Welcome to Visual Basic 6.0 database and basic programming learning program.
Learning Visual Basic programming by first understanding the usage of variables. Below is a Variable type table with information and memory requirements:
Type | Stores | Memory Requirement |
Integer | Whole numbers | 2 bytes |
Long | Whole numbers | 4 bytes |
Single | Decimal numbers | 4 bytes |
Double | Decimal numbers | 8 bytes |
Currency | 4 digits right of the decimal | 8 bytes |
String | Text information | 1 byte |
Byte | Whole numbers | 1 byte |
Boolean | Logical Values | 2 bytes |
Date | Date and Time | 8 bytes |
Object | Pictures and OLE objects | 4 bytes |
Variant | Preceding data types | 16 bytes + 1 byte per character |
No comments:
Post a Comment