How to remove the spaces in a string
Ex: "this is apple"

Answer Posted / shashank shekhar raj

Hai,

Try this it's much easier

x="This is apple"
x=replace("This is apple"," ","")
MsgBox x

REPLACE is function in which i replace whitespace (" ")
by no space ("")

Is This Answer Correct ?    25 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.

2486


How can constants be declared in the vbscript language?

541


How will you compare two strings in vbscript?

590


Which object is used to work with the database in the vbscript language and what statement is used to create this object?

503


Explain what is loose binding? Why is it not a good practice to use it?

569






Explain How do you create a recordset object in vbscript?

558


how to set one column as primary key in QTP and fetch values accordingly

1815


How strcomp function works?

618


Does VB/Win make standalone .EXE files?

2891


What's the difference between vbscript and vb.net?

544


Explain the string concatenation function in vbscript?

532


did any one attended interview in applabs if you had gone through plz tell me the procedure

1845


How can the spaces from the string be removed?

585


How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'

3262


How you can call vbscript functions?

568