Remove an Element from an Array.

S

Shapper

Hello,

I have this Array:
Dim cultureList(,) As String = {{"English", "en-GB"}, {"Português",
"pt-PT"}, {"Espanol", "es-SP"}}

How can I remove the second element of this array?

Thanks,
Miguel
 
K

Kevin Spencer

Create a new array, of a length one shorter than the first, and read all but
the second element into it.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Sometimes you eat the elephant.
Sometimes the elephant eats you.
 

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

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top