Click here to Skip to main content
15,896,330 members
Articles / Convert
Tip/Trick

Convert String Array To Single Array

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
6 Aug 2010CPOL 9K   1  
I share this 'cause i don't find it in web. Uses Convertall to change data type between arrays
...
sngArray = Array.ConvertAll(strArray, New Converter(Of String, Single)(AddressOf cSingle))

Private Function cSingle(ByVal sstr As String) As Single
Return CSng(sstr)
End Function

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Colombia Colombia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- There are no messages in this forum --