string --> arraylist = invalid cast?

  • Thread starter Thread starter Darrel
  • Start date Start date
D

Darrel

What's wrong with this vb.net dim?:

Dim imagesToSave As ArrayList = myString.split(",")

With myString = comma delimited string.

I keep getting an invalid cast error with that.

It's late and I'm tired, so I'm likely missing the obvious.

-Darrel
 
Split returns a string array ...

try ...

Dim imagesToSave() As String = myString.split(",")

Cheers,

Greg Young
 
Back
Top