Use CType to Convert Array

  • Thread starter Thread starter Jarod_24
  • Start date Start date
J

Jarod_24

Structure myXMLtype
Dim Filename As String
Dim sql As String
End Structure
....

Dim obj as New ArrayList
......

return CType(obj.ToArray, myXMLtype) 'This wont work

I know that CType() can't be used to convert a Array into a array of another type but is there any other method that will to do this
without having to create another array, and then do a loop where you convert each element?
 
Back
Top