I'm using vb.net 2008 edition and i was wondering if there a way to convert an array type to another array type. For instance say i dim an array as string and then want to convert the开发者_Go百科 array to the integer data type for sorting, how would i go about this?
You can call Array.ConvertAll
:
intArray = Array.ConvertAll(stringArray, Function(s) Int32.Parse(s))
精彩评论