Difference between revisions of "VB syntax"

From mi-linux
Jump to navigationJump to search
Line 2: Line 2:
 
''N.B. Unless otherwise stated the following should apply to all versions of VB.Net.''
 
''N.B. Unless otherwise stated the following should apply to all versions of VB.Net.''
  
===Variables and Constants===
+
==Variables and Constants==
 
Variables are used to store data values as the program runs.  The values in a variable may change as the program runs.
 
Variables are used to store data values as the program runs.  The values in a variable may change as the program runs.
  
 
Constants are similar to variable, but their value is fixed and cannot be changed as the program runs.
 
Constants are similar to variable, but their value is fixed and cannot be changed as the program runs.
  
There are many different [[data types]], each intended to hold certain types of data
+
*There are many different [[data types]], each intended to hold certain types of data
Before you can use a variable you must [[declare]variables] it.
+
*Before you can use a variable you must [[(how to) declare (variables)] it.
To store a value in a variable you must use an assignment statement
+
*To store a value in a variable you must use an [[assignment statement(s)]].

Revision as of 14:15, 13 September 2007

Visual Basic.Net Program Code N.B. Unless otherwise stated the following should apply to all versions of VB.Net.

Variables and Constants

Variables are used to store data values as the program runs. The values in a variable may change as the program runs.

Constants are similar to variable, but their value is fixed and cannot be changed as the program runs.

  • There are many different data types, each intended to hold certain types of data
  • Before you can use a variable you must [[(how to) declare (variables)] it.
  • To store a value in a variable you must use an assignment statement(s).