StrataFrame Forum

Converting String array to Integer array

http://forum.strataframe.net/Topic6181.aspx

By StarkMike - 1/24/2007

What would be the best way to convert a string array (consisting of integers) to an integer array?
By Trent L. Taylor - 1/24/2007

Cycle through the string array and add it into an Integer Generic list.


Dim loInt As New System.Collections.Generic.List(Of Integer)
Dim lcString As String

For Each lcString In laStrings
    loInt.Add(Integer.Parse(lcString))
Next
Return loInt.ToArray()