Section 3.3


[Page 622 (continued)]

In VB2005, you can declare multiple variables of the same data type on a single line without having to repeat the type keyword. For instance, a statement such as Dim m, n As Double specifies that both variables have data type Double. (In VB6, only n would have type Double.)

In VB2005, all variables must be declared as being of a specific type.

In VB2005 variables can be given an initial value when they are declared.

VB2005 does not allow the use of the Print method to display text in a picture box or on a form.

In VB2005, Option Explicit defaults to On.

The built-in functions Sqr and Round from VB6 are replaced in VB2005 by the functions Math.Sqrt and Math.Round.

In VB2005, the + =, =, * =, / = and ^= operators are available as shortcuts for certain types of assignment statements.




An Introduction to Programming Using Visual Basic 2005
Introduction to Programming Using Visual Basic 2005, An (6th Edition)
ISBN: 0130306541
EAN: 2147483647
Year: 2006
Pages: 164

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