Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - What are the common basic data types defined by VB?
What are the common basic data types defined by VB?
VB provides many basic data types, such as integer, string, Boolean, currency and so on. Each data type occupies a certain amount of memory and allows a certain range of values to be stored. All data should have certain data types, so that VB can be used correctly. See table for basic data types. Type ID of data type occupies byte representation range. Boolean type has no 2 bytes. True or false byte type has no 1 byte 0~255.

value

kind

Integers of type% 2 bytes -32 768~32 767 Long) and amp4 bytes-2147 483 648 ~+2147 483 647 single! 4 bytes-3.402 823e+38 ~-1.401.298e+45 and

+1.401298e-45 ~+3.402 823e+38 double # 8 bytes-1.797 6931e+308 ~-4.940 6564e-324 and

+4.940 656 4e-324 ~+1.797 6931e+308 Currency @ 8 bytes-922 337 203 685 477.580 8 ~+922 337 203 685 477.580 7 Date None. 438+0 day-1999 65438+February 3 1 day string type $ string length 0~2GB object type no 4 bytes Any object references Variant numeric type no 16 bytes to customize the application of no elements.