Other.NET languages declare array sizes differently than VB. In other languages,thefollowing declaration results in an array
with 10 elements indexed from X(0) up to X(9):
Dim X(10)
====================================================================
Dim MyArray As New ArrayList
MyArray.Add(TextBox1.Text)
MyArray.Add("Name")
MyArray.Add("Address")
MsgBox(MyArray(1)) 'message box show name
MsgBox(MyArray(0)) 'message box show TextBox1.Text
====================================================================
No comments:
Post a Comment