Visual Basic - Automatic variable

Automatic variable declaration is allowed almost anywhere, lifetime is usually from the declaration to the end of the current block.


automatic variable declaration Variable declaration is used for its creation.

 Dim name = par2
 Dim name = init_value
 Dim name  As type = init_value


variable use Using variables, you can access the data stored in a variable, can be used to store or retrieve the value.