Variables

I l @ ve RuBoard

Variables

Variables are storage locations and in VB.NET must have a specific type. When declared within method, property, or indexer declarations, variables are said to be local. Variables are declared in the following way:

 Dim  variablename  As  Type  

So, to create an integer variable, we could write this:

 Dim x As Integer 

Variables must be assigned a value before they can be used, and we can both declare and assign a value to a variable in one step:

 Dim x as Integer = 1 
I l @ ve RuBoard


Asp. Net. By Example
ASP.NET by Example
ISBN: 0789725622
EAN: 2147483647
Year: 2001
Pages: 154

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net