Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to remove the spaces from a string
#3
Solved: 12 Years, 10 Months, 2 Weeks ago
Hi Anand,

I have written some code for you, which is working fine. It will work for any string irrespective of spaces it contains.

Code:
str = "Suresh Vasu Kondapally"
newStr = ""
For i=1 to len(str)
    char = Mid(str,i,1)
    if(char<>" ") then
    newStr = newStr+Mid(str,i,1)
    End if
Next
MsgBox newStr

Do let me know if you get problem in using the code.

Suresh.
Reply


Messages In This Thread
How to remove the spaces from a string - by Anand - 05-30-2011, 01:28 PM
RE: How to remove the spaces from a string - by suresh vasu - 05-30-2011, 01:48 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to remove text in the webedit silpavinod 3 14,550 07-12-2018, 11:08 AM
Last Post: vijaychourasiya0109@gmail.com
  how to remove null values in array venkatesh9032 0 3,147 02-19-2014, 06:51 PM
Last Post: venkatesh9032
  Replace a string in a word document with another string rekha.naik 8 16,615 11-14-2013, 12:58 PM
Last Post: pranikgarg
  how to remove values from an Array. ACCBAJPA 5 5,961 08-23-2013, 12:18 PM
Last Post: ssvali
  How to remove space between webelements silpavinod 2 3,736 10-11-2012, 02:53 PM
Last Post: silpavinod

Forum Jump:


Users browsing this thread: 1 Guest(s)