I have tried a couple different ways and cannot seem to get the result I want using vb.net.
I have an array of strings. {“55555 “,”44444″, ” “}
I need an array of integers {55555,44444}
This is a wpf page that is sending the array as a parameter to a crystal report.
Any help is appreciated.
You can use the
List(Of T).ConvertAllmethod:or with the delegate
If you only want to use Arrays, you can use the
Array.ConvertAll method:Oh, i’ve missed the empty string in your sample data. Then you need to check this:
By the way, here’s the same in method syntax, ugly as always in VB.NET: