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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top