Is there any function in vb.net that removes all spaces in a string. I mean a string like "What is this" should be "Whatisthis"
Thanks Furkan
Use String.Replace ()
Dim s As String = " What is this" s = s.Replace(" ", "")
You can use String.Replace:
Dim str As String = " What is this" str = str.Replace(" ", "")
I used str=str.Replace(" ","")with great success.
str=str.Replace(" ","")
However, str=str.Replace(" ","")in the past it did not work for me.
str=str.Replace(" ","")
Usage String.Replace:
String.Replace
Dim Test As String = "Hello Hi" Test = Test.Replace(" ", String.Empty)
Source: https://habr.com/ru/post/1773678/More articles:View shell script output or execution when run in AppleScript - shellsetTimeout with .location window and $ (this) - jqueryCreating XML from ColdFusion - coldfusionLet the highest div dictate the height of the line - cssSQL Server Procedure Cache - sql-serverWhy can't I use Html helper methods with strongly typed views in ASP.NET MVC 2? - htmlSort by date after requesting multiple keys - couchdbIs it possible to insert data into the middle of a table using the INSERT command? - sqlWriting a log to the lock for edit file, which throws an exception. How to fix it? - c #live () mouseenter / hover - jqueryAll Articles