Wednesday, April 2, 2008

Convert Array to ArrayList

I found a really easy way to convert an Array to an ArrayList without having to iterate through the array collection.

I found this on a website -

The original code was in C#, but I converted it to VB for my purposes...

Dim ArrayListObject As ArrayList = ArrayList.Adapter(ArrayObject)

Just too simple...