How to remove blank spaces?


#1

Hello,

I have stored a string variable with numbers separated by blank spaces, such as: “31 2 2018”.

I would like to get the string value: “3122018”.

It is just an example. The variable could be: “1 12 2017” or “1 1 2018” for instance.
How could I do it?

Thanks a bunch.


#2

Hi @pal1910,
you can try like this.

str = str.Replace(" ", [String].Empty) 

you have so many solutions here

http://net-informations.com/q/faq/remove.html

Regards
Balamurugan.S


#3

Or trim…

Search forum and knowledge base for trim string.

Cheers,
Radomir


#4

Hi,

You can use replace function to remove blank spaces.

TextNew=Text.Replace(" “,”")

image