How to replace comma (,) with semicolon (;) in a string with VB.NET

1 Answer

0 votes
Imports System

Public Class ReplaceCommaWithSemicolonInAString_VB_NET
	Public Shared Sub Main(ByVal args As String())
        Dim s = "vb#,c#,c++,c"
		
        s = s.Replace(",", ";")
		
        Console.WriteLine(s)
    End Sub
End Class


' run:
'
' vb#;c#;c++;c
'

 



answered Sep 6, 2024 by avibootz

Related questions

1 answer 132 views
1 answer 124 views
1 answer 141 views
1 answer 142 views
2 answers 162 views
1 answer 125 views
1 answer 2,226 views
...