Long integer variables are stored as 32-bit (4 bytes) signed values ranging from -2,147,483,648 to 2,147,483,647. The type declaration character of Long is ampersand; )。
Integer variables are stored in the form of 16 bits (2 bytes) ranging from -32768 to 32767. The type declaration character of an integer is a percent sign (%).
You can also use integer variables to represent enumeration values. An enumeration value can contain a finite set, and the elements contained in the set are unique integers, and each integer has its special meaning in the context in which it is used. Enumeration values provide a convenient way to choose from a known number of options, for example, black = 0, white = 1 and so on. A better programming practice is to use the Const statement to define each enumeration value as a constant.