Conclusion

 <  Day Day Up  >  

This chapter covers two types that are composed of other types: arrays and enumerations. Most programs make use of arrays and enumerations to store multiple values of the same type or to assign names to numeric values. Now that we have covered the basic types, the next chapter will discuss the operations that can be performed on these types.

Here are some style points to consider.

  • The number of dimensions and/or the element type of the array could be changed as part of a ReDim statement in previous versions. This is no longer allowed because Framework arrays do not have this capability.

  • The Erase statement was the only way to clear an array in previous versions. Another way to clear an array in Visual Basic .NET is to set the array variable to Nothing . The two methods are exactly equivalent, and there is no advantage to one over the other.

 <  Day Day Up  >  


The Visual Basic .NET Programming Language
The Visual Basic .NET Programming Language
ISBN: 0321169514
EAN: 2147483647
Year: 2004
Pages: 173
Authors: Paul Vick

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