Friday, March 4, 2011

Arrays in VB.net


Dim arrX (0 to 2) as String
arrX is almost a box with 0-2 as designators (placeholders) for the numbers 0-2.
arrX(0)="Y"
arrX(2)="Z"

Dim arrL as New ArrayList
arrL.add("Y")
arrL.add("Z")


You cannot do a .add with arrX, you are stuck with the original number of placeholders that you designate.

No comments:

Post a Comment