Variable in VB.NET

When a computer processes information or data, that data should be placed in its  memory first, then it performs different operations on that. You application as well  should process the information in memory. To accomplish that the you allocate memory  by defining variables. Simply, a variable is small piece of memory that allows the  program to process data within it.

To define a variable in VB.NET you use the following format:

Where the Dim tells the computer that you are going to define a variable. Next you write  variable name (in this case it is MyInt) and finally the data type As Integer which  tells the computer you are going to perform integer operations on the data in that  variables.

Leave a Reply

Your email address will not be published. Required fields are marked *