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 Enter Values on the Command promt using VB script

1530


How will you get a subset of a array in vbscript?

585


PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com

1660


How many types of procedures are available in the vbscript language?

532


Mention what is variant in vbscript?

552






How will you convert a string to lower case string using vbscript?

553


Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.

1537


How strcomp function works?

624


In html file what is an ideal position to include vbscript?

810


How will you get the octal value of the given number in vbscript?

497


If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?

532


how to increasing the numbers in a given text box please write a vb script

1698


What is byref and byval parameters in vbscript?

604


what is used of Property........End Property loop ? how to write the script for it?

1684


Explain about vb script?

745