How to insert substring into a string in VB.NET

1 Answer

0 votes
Imports System

Public Module Module1
	Public Sub Main()
		Dim s As String = "vb.net java c++"
		
		s = s.Insert(7, "python ")
		
		Console.WriteLine(s)
		
	End Sub
End Module



' run:
'
' vb.net python java c++
' 

 



answered Mar 9, 2021 by avibootz

Related questions

2 answers 227 views
3 answers 180 views
1 answer 154 views
1 answer 201 views
...