array question

  • Thread starter Thread starter Agnes
  • Start date Start date
A

Agnes

What is the different of the following
(1)Dim myList() as string ={1,l2}...etc
(2)Dim myList as array
for (2), why can't just put the value in mylist(0) ??? e.g myLIst (0) =
"apple",mylist(1)="peter"

Thanks
 
Hi,
Array is an abstract class; it cannot be instantiated and used directly.

What is the different of the following
(1)Dim myList() as string ={1,l2}...etc
(2)Dim myList as array
for (2), why can't just put the value in mylist(0) ??? e.g myLIst (0) =
"apple",mylist(1)="peter"

Thanks
 
Back
Top