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

Buy a domain name - Register cheap domain names from $0.99 - Namecheap

Scalable Hosting That Grows With You

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Semrush - keyword research tool

Boost your online presence with premium web hosting and servers

Disclosure: My content contains affiliate links.

39,933 questions

51,870 answers

573 users

How to remove specific character from a string in VB.NET

3 Answers

0 votes
Imports System

Public Class Program
    Public Shared Sub Main(ByVal args As String())
		Dim str As String = "vb.net c# c++ python c java php"
		
        str = str.Replace("p", String.Empty)
		
        Console.WriteLine(str)
    End Sub
End Class




' run:
'
' vb.net c# c++ ython c java h
'

 



answered Sep 30, 2022 by avibootz
0 votes
Imports System

Public Class Program
    Public Shared Sub Main(ByVal args As String())
		Dim str As String = "vb.net c# c++ python c java php"
		
        Dim ch As Char = "p"c
		
		str = str.Replace(Convert.ToString(ch), String.Empty)
		
        Console.WriteLine(str)
    End Sub
End Class





' run:
'
' vb.net c# c++ ython c java h
'

 



answered Sep 30, 2022 by avibootz
edited Sep 30, 2022 by avibootz
0 votes
Imports System

Public Class Program
    Public Shared Sub Main(ByVal args As String())
		Dim str As String = "vb.net c# c++ python c java php"
		
		Dim ascii AS Integer = 112 ' 112 = 'p'
 
        str = str.Replace(Convert.ToString(Char.ConvertFromUtf32(ascii)), String.Empty)
		
        Console.WriteLine(str)
    End Sub
End Class





' run:
'
' vb.net c# c++ ython c java h
'

 



answered Sep 30, 2022 by avibootz

Related questions

1 answer 143 views
1 answer 123 views
1 answer 91 views
1 answer 188 views
...