Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Prodentim Probiotics Specially Designed For The Health Of Your Teeth And Gums

Instant Grammar Checker - Correct all grammar errors and enhance your writing

Teach Your Child To Read

Powerful WordPress hosting for WordPress professionals

Disclosure: My content contains affiliate links.

31,122 questions

40,780 answers

573 users

How to convert string array to integer array in VB.NET

1 Answer

0 votes
Imports System

Public Class Program
	Public Shared Sub Main()
		Dim s_array = {"123", "456", "789"}
			
		Dim i_array = Array.ConvertAll(s_array, Function(str) Int32.Parse(str))

         For Each item In i_array
            Console.WriteLine(item)
        Next
    End Sub
End Class

	
		
		

' run:
'
' 123
' 456
' 789
'

 





answered Dec 7, 2021 by avibootz

Related questions

1 answer 48 views
2 answers 197 views
3 answers 123 views
1 answer 54 views
1 answer 84 views
...