What does dim mean?

  
                  

Recently, Xiao Bian found that many beginners who are learning VB programming are asking in major forums: What does dim mean? & rdquo; Just Xiaobian himself is also learning VB programming, of course, can not turn a blind eye to this problem, in the following will be for everyone to explain the meaning of dim in VB?

Example: Dim xxxx As Integer

Dim is the abbreviation of Dimension, followed by the name of the required variable. As specifies the type of the variable. When the program is running, the Dim statement is assigned to the variable according to the variable type. Memory space Dim statement that declares and allocates storage for one or more variables. Declare a variable to specify its name and characteristics. The declaration statement for a variable is a Dim statement. Its location and content determine the characteristics of the variable.

When using variables, it is best to create or declare the name explicitly. The simplest is to use the abbreviation of the keyword dim(dimension), dim strmy, which does three things in the invisible: create the name of the variable, specify The type, a space allocated in memory, nothing in memory before the variable is assigned.

Copyright © Windows knowledge All Rights Reserved