vbscript remove spaces from string

The solution for “vbscript remove spaces from string” can be found here. The following code will assist you in solving the problem.

‘ The Replace function replaces a specified part of a string with another string a specified number of times.
txt=”This is a beautiful day.”
Replace(txt,” “,””,1,-1)

‘ Output: Thisisabeautifulday.

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts