Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - VB Programming: What are the variable types defined by Dim a and B as integer statements?
VB Programming: What are the variable types defined by Dim a and B as integer statements?
Therefore, b is declared as an integer type, and a is the default variable type.

In Visual Basic, the keywords defining variables are Dim, Statie, re Dim, Public or Global, which have different purposes: Dim is used to define variables or arrays in standard modules, form modules or procedures;

Static is used to define static variables or arrays in the process;

Common or global statements are used to define global variables or arrays in standard modules;

ReDim is mainly used to redefine arrays.

Extended data:

Naming of VB variable names:

The naming rule of variable names is: within 255 characters, the first character is a letter, followed by a combination of letters, numbers and underscores, and the last character can also be a type descriptor. Usually, variable names with certain meanings are used, which helps to explain the function and simplify the debugging process. Reserved words cannot be used as variable names.

Put the type symbol at the end of the variable to explain the different types of the variable. Type description is as follows:

% stands for integer. Represents a long integer! Stands for single precision type, # stands for double precision type, @ stands for universal type, and $ stands for character type.